ios典型问题

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.

Domains for Web Addresses

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).

Domains in Email Addresses


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.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值