- 博客(6)
- 收藏
- 关注
原创 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
原创 添加 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 464
原创 UISearchDisplayController搜索时总是报cell错
2014-10-21 16:54:21.802 MyMusic[7318:5042001] *** Assertion failure in -[UISearchResultsTableView dequeueReusableCellWithIdentifier:forIndexPath:], /SourceCache/UIKit_Sim/UIKit-3318/UITableView.m:6116
2015-03-25 04:03:06 468
原创 在launchscreen.xib,添加图片
在launchscreen.xib中拖出的imageview,然后可以通过添加 auto layout 约束来适应各个屏幕的尺寸。这一块使用到的技术就是NSLayoutConstraint 。通过auto layout 你可以给imageview添加pin 或水平居中,垂直居中等约束。
2015-03-24 14:39:24 796
转载 IOS7(新UI之自定义UITableViewCell)
ios7 新升级之后界面有了很大的变化,xcode模拟器去掉了手机边框和home键,如果想回到主页面,可以按住shift+comment+r键。废话少说先展示一下新UI下UItableView设置为Group后的效果:整体界面显得更加简洁,而且UITableViewCell的宽度默认为满屛,也取消了圆角。下面说下自定义UITableView的过程:首
2015-03-23 00:16:18 371
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人