首页 > 移动平台 > 详细

iOS 常用的单例类

时间:2016-07-22 01:08:39      阅读:302      评论:0      收藏:0      [点我收藏+]

1、UIApplication(应用程序实例)

获取方式:[UIApplication sharedApplication]

详细:http://www.cnblogs.com/hissia/p/5678518.html

 

2、NSNotificationCenter(消息中心)

获取方式:[NSNotificationCenter defaultCenter]

常用的通知模式

 

3、NSFileManager(文件管理)

获取方式:[NSFileManager defaultManager]

 

4、NSUserDefaults(偏好设置)

获取方式:[NSUserDefaults standardUserDefaults]

详细:http://www.cnblogs.com/hissia/p/5642405.html

 

5、NSURLCache(请求缓存)

获取方式:[NSURLCache sharedURLCache]

 

6、NSHTTPCookieStorage(应用程序cookies池)

获取方式:[NSHTTPCookieStorage sharedHTTPCookieStorage]

 

7、NSURLSession(发送请求时候用的)                

获取方式:[NSURLSession sharedSession]

 

8、UIMenuController(弹出的菜单可以选择,复制,剪切,粘贴的功能)      

获取方式:[UIMenuController sharedMenuController]

详细:http://www.cnblogs.com/hissia/p/5668513.html

 

 
 

iOS 常用的单例类

原文:http://www.cnblogs.com/ruixin-jia/p/5693700.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!