代码改变世界

随笔档案-2015年08月

关于uitableviewcell的accessoryType属性

2015-08-17 11:16 by marysneaker, 291 阅读, 收藏,
摘要: cell.accessoryType=UITableViewCellAccessoryNone;//cell没有任何的样式cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;//cell的右边有一个小箭头,距离右边有十几像素;... 阅读全文

Pad的界面布局好多时候都要做两套------横屏和竖屏,但在界面切换时,该让哪个布局显示就要判断了,有多种方法,我记录下我用的一种,感觉比较方便:

2015-08-12 10:56 by marysneaker, 570 阅读, 收藏,
摘要: NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; //Get the notification centre for the app [nc addObserver:self //Add yourself as an ... 阅读全文