iOS
bosl315
这个作者很懒,什么都没留下…
展开
-
viewDidApper,viewDidLoad
Note: If you’re new to viewDidAppear method, it is a method that will be called automatically every time a view is displayed. It’s unlike the viewDidLoad method that is invoked once when the contro原创 2015-03-27 15:42:06 · 761 阅读 · 0 评论 -
添加 Search Bar in Table View-iOS7
前提: UISearchDisplayController 在ios8已经废弃了。 1:In Storyboard, drag and add the “Search Bar and Search Display Controller” , 直接拖出来不用实现任何新的代码,你就已经有个 search bar了。 不需要手动连接 data source and delegate with th原创 2015-03-26 19:23:03 · 462 阅读 · 0 评论 -
IOS7(新UI之自定义UITableViewCell)
ios7 新升级之后界面有了很大的变化,xcode模拟器去掉了手机边框和home键,如果想回到主页面,可以按住shift+comment+r键。废话少说先展示一下新UI下UItableView设置为Group后的效果: 整体界面显得更加简洁,而且UITableViewCell的宽度默认为满屛,也取消了圆角。 下面说下自定义UITableView的过程: 首转载 2015-03-23 00:16:18 · 371 阅读 · 0 评论 -
在launchscreen.xib,添加图片
在launchscreen.xib中拖出的imageview,然后可以通过添加 auto layout 约束来适应各个屏幕的尺寸。 这一块使用到的技术就是NSLayoutConstraint 。通过auto layout 你可以给imageview添加pin 或水平居中,垂直居中等约束。原创 2015-03-24 14:39:24 · 794 阅读 · 0 评论