随笔分类 -  IOS

摘要:一、首先在自己的仓库创建私有仓库 1、创建私有索引库,最好留创建一个README.md文件,不然索引有可能传不上去 2、创建私有项目库,干干净净的,不要创建README.md、.gitignore,和LICENSE文件,这些在创建私有库的时候会自动生成,不然会有冲突 二、创建私有库项目 1、在自己创 阅读全文
posted @ 2019-07-29 09:38 在bug中前行 阅读(481) 评论(0) 推荐(0)
摘要:http://www.jianshu.com/p/a6a14fb2f567 阅读全文
posted @ 2017-04-27 17:49 在bug中前行 阅读(109) 评论(0) 推荐(0)
摘要:http://www.jianshu.com/p/506ec0e95938 阅读全文
posted @ 2017-02-15 13:54 在bug中前行 阅读(197) 评论(0) 推荐(0)
摘要:获取网络数据类型,需要导入一个苹果api文件:Reachability(可以直接在官方上下载),里面的枚举类型就是对应网络类型 kSCNetworkReachabilityFlagsIsWWAN、 kSCNetworkReachabilityFlagsReachable、kSCNetworkReac 阅读全文
posted @ 2016-11-26 21:14 在bug中前行 阅读(302) 评论(0) 推荐(0)
摘要:具体代码:参看以下demo Github: https://github.com/Yasashi/EBForeNotification 具体操作如下: 1、将EBForeNotification文件夹添加进入工程中 2、targets --> Build Settings --> 搜 other l 阅读全文
posted @ 2016-08-01 11:16 在bug中前行 阅读(1778) 评论(0) 推荐(0)
摘要:看了不错的一篇文章记录一下 http://www.jianshu.com/p/93ce1748ea57 阅读全文
posted @ 2016-07-28 14:15 在bug中前行 阅读(278) 评论(0) 推荐(0)
摘要:1、滑动的时候隐藏navigation bar 2、消除导航条返回键自带的title 3、将导航条变得透明而不模糊 4、拉伸图片不变形 5、gif图片显示优化 FLAnimatedImage可以帮你完成GIF的显示处理。解决GIF显示卡顿的情况。 6、CollectionView实现tablevie 阅读全文
posted @ 2016-07-26 14:09 在bug中前行 阅读(366) 评论(0) 推荐(0)
摘要:http://www.henishuo.com/uibezierpath-draw/?sukey=fa67fe3435f5c4be0d7b66a38a28419f4779835d004c13f6e6bee83d07c3a21d1daa80292c36050f0e2801b0da8850e0 阅读全文
posted @ 2016-04-29 11:11 在bug中前行 阅读(105) 评论(0) 推荐(0)
摘要:1.简单地添加一个layer视图 2,使用图层添加一张图片 3、使用图层代理添加一个有阴影的图片 阅读全文
posted @ 2016-04-29 11:10 在bug中前行 阅读(172) 评论(0) 推荐(0)
摘要:1、定义一个GPS管理类: GPSLocationManager.h: GPSLocationManager.m文件内容: 2、在AppDelegate里面实现 gpsLocate方法,开启定位 阅读全文
posted @ 2016-03-29 15:32 在bug中前行 阅读(353) 评论(0) 推荐(0)
摘要:1、首先导入一个公共类Reachability.h文件: Reachability.m 文件: 2、开启网络监听,注册通知 3、监听到通知,作相应的操作 阅读全文
posted @ 2016-03-29 15:16 在bug中前行 阅读(289) 评论(0) 推荐(0)
摘要://一个section刷新 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAut 阅读全文
posted @ 2016-03-09 14:20 在bug中前行 阅读(757) 评论(0) 推荐(0)
摘要:工具类: .h文件: #import <LocalAuthentication/LocalAuthentication.h> #if TARGET_IPHONE_SIMULATOR #define WJNotice(Chinese,English) [[[[NSUserDefaults standa 阅读全文
posted @ 2016-02-22 12:04 在bug中前行 阅读(1515) 评论(0) 推荐(0)
摘要:支付宝启动页面,是可以随时替换的,个人认为实际上是两张图,只不过第一张本地的图下半部分跟第二张图的下半部分是一样的。 做到这样的效果,第二张图片可以随时替换,请求一个接口就可以了,有什么活动只需要在服务器上传图片就行了。具体步奏: 1.首先在项目里面LaunchImage里面对应放上第一张白色底图 阅读全文
posted @ 2016-02-22 11:56 在bug中前行 阅读(302) 评论(0) 推荐(0)
摘要:~/Library/Application Support/Developer/Shared/Xcode/Plug-ins 阅读全文
posted @ 2016-01-19 19:43 在bug中前行 阅读(153) 评论(0) 推荐(0)
摘要:1、先设置系统导航卡全透明 self.navigationController.navigationBar.translucent = YES; self.navigationController.navigationBar.titleTextAttributes = @{NSForegrou... 阅读全文
posted @ 2016-01-19 12:13 在bug中前行 阅读(938) 评论(0) 推荐(0)
摘要:在这个方法里面处理获取的远程推送消息- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void ... 阅读全文
posted @ 2016-01-19 12:08 在bug中前行 阅读(285) 评论(0) 推荐(0)
摘要:1、自定义searchBar: (1).h:#import @interface EMSearchBar : UISearchBar/** * 自定义控件自带的取消按钮的文字(默认为“取消”/“Cancel”) * * @param title 自定义文字 */- (void)setCance... 阅读全文
posted @ 2015-08-03 12:06 在bug中前行 阅读(284) 评论(0) 推荐(0)
摘要:NSString * content = resultDic[@"content"][0]; NSRegularExpression *regularExpretion=[NSRegularExpression regularExpressionWithPattern:... 阅读全文
posted @ 2015-07-17 18:45 在bug中前行 阅读(212) 评论(0) 推荐(0)
摘要:http://my.oschina.net/u/1418722/blog/318751 阅读全文
posted @ 2015-05-28 18:48 在bug中前行 阅读(102) 评论(0) 推荐(0)