
iOS
passer199101
这个作者很懒,什么都没留下…
展开
-
手势识别(UIGestureRecognizer)
http://www.2cto.com/kf/201504/395305.html转载 2015-10-18 08:37:32 · 345 阅读 · 0 评论 -
SWIFT中获取当前经伟度
http://www.cnblogs.com/foxting/p/4518379.html原创 2016-05-10 18:48:29 · 381 阅读 · 0 评论 -
SQLite.swift Documentation
https://github.com/stephencelis/SQLite.swift/blob/master/Documentation/Index.md转载 2015-06-20 08:46:02 · 394 阅读 · 0 评论 -
Swift中的问号?和感叹号!
http://letsswift.com/2014/06/swift-questionmark-exclamatorymark/转载 2015-06-04 22:22:02 · 647 阅读 · 0 评论 -
Swift语言主流学习资源
Swift语言主流学习资源用闲人的心态看世界原创 2015-04-19 18:03:01 · 480 阅读 · 0 评论 -
Xcode : Your session has expired. Please log in
Xcode–>Preferences–>Apple ID。检查哪个账户过期了。可能需要重置密码 http://blog.youkuaiyun.com/liuming_nx/article/details/50312135原创 2016-05-02 22:25:54 · 1723 阅读 · 0 评论 -
Missing iOS Distribution signing identity for
删除已过期的Apple Worldwide Developer Relations Certification Authority证书 http://www.jianshu.com/p/9dc2aad90539原创 2016-05-02 22:27:09 · 280 阅读 · 0 评论 -
UITextView文字上方一段空白的解决方法
凡是继承UIScrollView的控件都会受到UIViewController的这个automaticallyAdjustsScrollViewInsets属性的影响 默认为YES, 当有navigationbar的时候,UITextView的表现就是上面空白 设为NO,UITextView就正常了. 也可以在storyboard上进行设置,取消 Adjust Scroll View Ins原创 2016-05-02 22:27:50 · 702 阅读 · 0 评论 -
viewController和resignFirstResponder的情丝
视频中有介绍如何再viewController中使用resignFirstResponder http://www.maiziedu.com/course/ios/18-378/原创 2016-05-02 22:28:35 · 542 阅读 · 0 评论 -
Swift - 使用NSURLSession同步获取数据(通过添加信号量)
首先非常感谢代码的原作者,为了查询方便我就在这里又留了一份,请见谅.原文http://www.hangge.com/blog/cache/detail_816.html过去通过 NSURLConnection.sendSynchronousRequest() 方法能同步请求数据。从iOS9起,苹果建议废除 NSURLConnection,使用 NSURLSession 代替 NSURLConnect转载 2016-05-03 23:41:21 · 1432 阅读 · 0 评论 -
使用swift解析json
let jsonObject = try NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.MutableContainers)print(jsonObject)let array = jsonObject as! NSArray//读取数组中某个key所对应的所有值print(array.val转载 2016-05-03 23:42:56 · 405 阅读 · 0 评论 -
swift设置UIButton的title文字
let btn = UIButton(frame: CGRect(x: x, y: y, width: 20 , height: 20 ) ) btn.setTitle(“click”, forState: UIControlState.Normal)转载 2016-05-03 23:44:32 · 3061 阅读 · 0 评论 -
Xcode删除所有断点
首先要将项目视图切换到breakpoint navigation视图,然后在文件上右键就可以将breakpoint删除掉了转载 2016-05-03 23:45:39 · 2536 阅读 · 0 评论 -
Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from h
cocoaPods 最新安装方法小白级的CocoaPods安装和使用教程[!] To setup the master specs repo, please run pod setuppod repo remove mastergit clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/masterpod set原创 2017-01-08 18:23:05 · 1932 阅读 · 0 评论 -
swift3中的多线程GCD
详细内容请参考http://www.jianshu.com/p/4c983388dca6 //最常用模板//全局队列异步执行DispatchQueue.global().async { //耗时操作 DispatchQueue.main.async { //回到主线程 }}原创 2017-01-15 18:47:17 · 1762 阅读 · 0 评论 -
ios swift uitextview如何应对键盘的遮挡
参考http://stackoverflow.com/questions/35006738/auto-scroll-for-uitextview-using-swift-ios-app1.继承 UITextViewDelegate 2.NotificationCenter.default.addObserver(self, selector: #selector(TextViewControlle原创 2017-01-10 23:09:32 · 2019 阅读 · 0 评论 -
iOS 移除CocoaPods
http://www.jianshu.com/p/552f21a989ba 上边链接中的写了如何移除CocoaPods,但是我在操作的时候发现还不完善,特记录如下: 就是开Build Phases选项,然后将Pod的条目全都删除,再次运行程序,发现就正常了。原创 2017-03-04 17:23:44 · 677 阅读 · 0 评论 -
在IOS 8 iOS 9 中使用CoreLocation 获取地理位置
http://www.jianshu.com/p/ce8be56845c1原创 2016-05-10 18:48:09 · 514 阅读 · 0 评论 -
xcode如何修改app的名字
http://blog.youkuaiyun.com/u011862058/article/details/50125905转载 2015-12-08 07:51:12 · 947 阅读 · 0 评论 -
设置app的图标
http://www.maiziedu.com/course/ios/501-6557/图标的尺寸大小根据xcode的错误提示,警告信息进行修改原创 2015-12-08 07:54:40 · 367 阅读 · 0 评论 -
swift实现ios类似微信输入框跟随键盘弹出的效果
http://www.jianshu.com/p/4e755fe09df7转载 2015-10-02 17:34:29 · 953 阅读 · 0 评论 -
自定义tableview Header和Footer的样式
http://www.cnblogs.com/ai-developers/p/4559035.html转载 2015-10-04 10:25:35 · 2264 阅读 · 0 评论 -
viewWithTag 返回 nil , viewWithTag的值为nil的原因
http://www.cocoachina.com/bbs/read.php?tid=270980http://blog.youkuaiyun.com/smking/article/details/8590547转载 2015-10-04 18:34:32 · 1300 阅读 · 0 评论 -
「Swift学习笔记」使用UILabel显示多行文本
http://www.jianshu.com/p/ee6e4394d468转载 2015-10-05 15:44:52 · 1281 阅读 · 0 评论 -
swift版支付宝解锁仿造
https://github.com/csjlengxiang/Swift-GestureUnlock转载 2015-10-08 23:11:39 · 492 阅读 · 0 评论 -
swift UITableView cell自适应高度
http://blog.youkuaiyun.com/tujiaw/article/details/47073449http://fourfire.iteye.com/blog/2109724转载 2015-10-08 23:14:17 · 489 阅读 · 0 评论 -
iOS8实现滑动TableViewCell自定义Actions-Swift基础教程
http://www.swiftmi.com/topic/174.html转载 2015-10-08 23:15:28 · 464 阅读 · 0 评论 -
左右滑动cell,调出菜单
https://github.com/nathanwhy/HYPanViewController转载 2015-10-10 06:52:20 · 377 阅读 · 0 评论 -
iOS9 HTTP 不能正常使用的解决办法
http://segmentfault.com/a/1190000002933776转载 2015-10-25 11:44:31 · 305 阅读 · 0 评论 -
错误记录]UITableView删除行的问题
http://dcm19872007.blog.163.com/blog/static/865193742013228113521393/http://blog.youkuaiyun.com/lvxiangan/article/details/25161157转载 2015-10-11 19:13:34 · 316 阅读 · 0 评论 -
iOS开发:创建真机调试证书(非常好)
http://jingyan.baidu.com/album/ff411625b8141312e48237a7.html?picindex=36转载 2015-09-23 07:53:17 · 440 阅读 · 0 评论 -
为iPhone 6设计自适应布局
http://www.cocoachina.com/ios/20141020/9978.html转载 2015-12-13 20:23:06 · 343 阅读 · 0 评论 -
UIView.clipsToBounds 让子 View 只显示落在父 View 的 Frame 部分
http://unmi.cc/uiview-clipstobounds-show-visible-part/转载 2015-12-15 22:39:28 · 505 阅读 · 0 评论 -
给UILable中的文字添加删除线样式
https://lvwenhan.com/ios/438.htmllet attributedText = NSAttributedString(string: "内容", attributes: [NSStrikethroughStyleAttributeName: 1])let contentLabel = UILabel()contentLabel.attributedText =原创 2015-12-19 22:55:39 · 1360 阅读 · 0 评论 -
改变UITableView的headerView、footerView背景颜色
http://www.thinksaas.cn/group/topic/349869/转载 2015-12-19 23:37:57 · 472 阅读 · 0 评论 -
自定义UICollectionViewCell init(coder:) has not been implemented
使用以下方式实现即可: requiredinit(coder aDecoder: NSCoder) { super.init(coder: aDecoder)! // fatalError("init(coder:) has not been implemented") }原创 2015-12-23 23:02:53 · 2799 阅读 · 0 评论 -
IBInspectable和IBDesignable
简单来说,IBInspectable使得在Interface Builder的Attribute Inspector(属性检查器)中能够查看类的属性,而IBDesignable能实时更新视图,很厉害吧! P.S: inspectable表示「可视的」。 下面将以实际例子更加生动说明IBInspectable和IBDesignable的使用方法和效果。 具体的内容请参考http://zhangb原创 2017-03-13 08:35:59 · 785 阅读 · 0 评论