ipad/iphone键盘长按会出现特效
Tip #8: When you are typing a website URL in the address bar of the Safari browser, there’s a special “.com” key in the keyboard that you can tap to quickly complete the web address.
However, if the website that you are trying to reach doesn’t end with a .com, you can still use that key. Just hold it for a while and it will give you an option to choose other popular TLDs including .edu, .org and .net.
Tip #9: Just like the .com key in Safari lets you type domain URLs quickly, there’s something similar in the Mail program of the iPhone /iPad that will help you complete email addresses quickly.
When typing an email address in the To: or CC /BCC field of the Mail program, press and hold the dot (.) key and you’ll get a list of domain shortcuts in a pop-up to auto-complete the email address (you’ll essentially save 3 key strokes).
Q: How do I programmatically quit my iOS application?
A: There is no API provided for gracefully terminating an iOS application.
In iOS, the user presses the Home button to close applications. Should your application have conditions in which it cannot provide its intended function, the recommended approach is to display an alert for the user that indicates the nature of the problem and possible actions the user could take — turning on WiFi, enabling Location Services, etc. Allow the user to terminate the application at their own discretion.
Warning Do not call the exit
function. Applications calling exit
will appear to the user to have crashed, rather than performing a graceful termination and animating back to the Home screen.
Additionally, data may not be saved, because -applicationWillTerminate:
and similar UIApplicationDelegate
methods will not be invoked if you call exit
.
If during development or testing it is necessary to terminate your application, the abort
function, or assert
macro is recommended.
====Q:
What you can do is to show a view that blocks the screen and then call the UIAlertView.
So now you have your view, the blocking view and the UIAlertView in front.