上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: func initView() -> Void { let button = UIButton(frame: CGRectMake(100,200,150,150)) button.setImage(UIImage(named: "11"), forState: .Normal) button.setTitle("按钮", forStat... 阅读全文
posted @ 2016-07-18 17:30 在bug中前行 阅读(534) 评论(0) 推荐(0) 编辑
摘要: var str = "哈哈哈哈哈1234" func isIncludeChineseIn(string: String) -> Bool { for (_, value) in string.characters.enumerate() { if ("\u{4E00}" <= value && value <= "\u{9FA5}") { ... 阅读全文
posted @ 2016-07-17 14:14 在bug中前行 阅读(2802) 评论(0) 推荐(0) 编辑
摘要: http://www.henishuo.com/uibezierpath-draw/?sukey=fa67fe3435f5c4be0d7b66a38a28419f4779835d004c13f6e6bee83d07c3a21d1daa80292c36050f0e2801b0da8850e0 阅读全文
posted @ 2016-04-29 11:11 在bug中前行 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 1.简单地添加一个layer视图 2,使用图层添加一张图片 3、使用图层代理添加一个有阴影的图片 阅读全文
posted @ 2016-04-29 11:10 在bug中前行 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1、定义一个GPS管理类: GPSLocationManager.h: GPSLocationManager.m文件内容: 2、在AppDelegate里面实现 gpsLocate方法,开启定位 阅读全文
posted @ 2016-03-29 15:32 在bug中前行 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 1、首先导入一个公共类Reachability.h文件: Reachability.m 文件: 2、开启网络监听,注册通知 3、监听到通知,作相应的操作 阅读全文
posted @ 2016-03-29 15:16 在bug中前行 阅读(285) 评论(0) 推荐(0) 编辑
摘要: //一个section刷新 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAut 阅读全文
posted @ 2016-03-09 14:20 在bug中前行 阅读(751) 评论(0) 推荐(0) 编辑
摘要: 工具类: .h文件: #import <LocalAuthentication/LocalAuthentication.h> #if TARGET_IPHONE_SIMULATOR #define WJNotice(Chinese,English) [[[[NSUserDefaults standa 阅读全文
posted @ 2016-02-22 12:04 在bug中前行 阅读(1481) 评论(0) 推荐(0) 编辑
摘要: 支付宝启动页面,是可以随时替换的,个人认为实际上是两张图,只不过第一张本地的图下半部分跟第二张图的下半部分是一样的。 做到这样的效果,第二张图片可以随时替换,请求一个接口就可以了,有什么活动只需要在服务器上传图片就行了。具体步奏: 1.首先在项目里面LaunchImage里面对应放上第一张白色底图 阅读全文
posted @ 2016-02-22 11:56 在bug中前行 阅读(295) 评论(0) 推荐(0) 编辑
摘要: ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins 阅读全文
posted @ 2016-01-19 19:43 在bug中前行 阅读(141) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页