2015年9月22日

NSSearchPathForDirectoriesInDomains用法

摘要: 1.iPhone会为每一个应用程序生成一个私有目录,这个目录位于:/Users/sundfsun2009/Library/Application Support/iPhone Simulator/User/Applications下,并随即生成一个数字字母串作为目录名,在每一次应用程序启动时,这个字... 阅读全文

posted @ 2015-09-22 17:11 Baymax01 阅读(251) 评论(0) 推荐(0) 编辑

查询是否有权限访问相机和相册

摘要: +(BOOL)getSystemPhotoAuthority{ BOOL agree=NO; AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVi... 阅读全文

posted @ 2015-09-22 17:05 Baymax01 阅读(224) 评论(0) 推荐(0) 编辑

iOS推送

摘要: 1.注册推送- (BOOL)pushNotificationOpen{ if (isAfterIOS8) { UIUserNotificationType types = [[UIApplication sharedApplication] currentUserNotif... 阅读全文

posted @ 2015-09-22 14:41 Baymax01 阅读(155) 评论(0) 推荐(0) 编辑

第三方分享(新浪,微信,QQ)

摘要: 1.去各个平台下载ShareSDK,并注册[WXApi registerApp:WEIXINAPPID]; [WeiboSDK registerApp:WEIBOkey];View Code2.AppDelegate文件-(BOOL)application:(UIApplication *)a... 阅读全文

posted @ 2015-09-22 14:35 Baymax01 阅读(216) 评论(0) 推荐(0) 编辑

导航