今天在做项目在UIViewController中的UItableview使用staticCell,刚在storyboard中的tableView设置完staticCell,就出现 Static table views are only valid when embedded in UITableViewController instances警告。是说staticCell只能在UItablevie...
分类:
其他好文 时间:
2015-04-21 00:27:11
阅读次数:
90
#import @interface MJSegmentViewController : UIViewController/** * @brief 设置切换不同viewcontroller * * @param arrViewCtl 保存viewController对象 * @param ...
分类:
其他好文 时间:
2015-04-19 19:28:17
阅读次数:
196
一:利用代理传值,就是利用代理进行通信。接口文件:#import @protocol Cdelegate -(void)change:(NSString *)name;@end.h文件@interface ViewController : UIViewController.m文件- (IBActio...
分类:
移动开发 时间:
2015-04-18 01:11:59
阅读次数:
289
两个UIViewController之间的翻转可以用动画效果翻转(上下,左右翻转,翻页,淡出)...
分类:
其他好文 时间:
2015-04-17 13:53:33
阅读次数:
111
初始化@interface ViewController : UIViewController
@end创建输入输出流@interface ViewController (){
NSInputStream *_inputStream;...
分类:
其他好文 时间:
2015-04-17 11:32:34
阅读次数:
142
UICollectionView的使用有两种方法,一种是继承UICollectionViewController,这个Controller会自带一个UICollectionView;另外一种是作为一个视图放在普通的UIViewController里面。
个人更喜欢第二种。下面采用第二种方式简单介绍一下UICollectionView的使用。
1.UIViewController实现委托...
分类:
移动开发 时间:
2015-04-17 11:26:18
阅读次数:
145
info.plist、pch和四大对象(UIApplication、UIApplicationDelegate、UIWindow、UIViewController)
分类:
移动开发 时间:
2015-04-15 22:39:15
阅读次数:
199
这个api功能就是在NavigationController堆栈内的UIViewController可以支持右滑手势,也就是不用点击右上角的返回按钮,轻轻在屏幕左边一滑,屏幕就会返回,随着ios设备屏幕的增大,这个小功能让手指短,拇指大和手残人士看到了福音。这个功能是好,但是经常我们会有需求定制返回...
分类:
移动开发 时间:
2015-04-15 19:04:12
阅读次数:
196
在UIViewController中收起键盘,除了调用相应控件的resignFirstResponder方法之外,还有另外三种方法:重载UIViewController中的touchesBegin方法,然后在里面执行[self.view endEditing:YES];,这样单击UIViewCont...
分类:
移动开发 时间:
2015-04-15 13:17:22
阅读次数:
146
转自http://onevcat.com/2014/11/watch-kit/发现一个写的非常好的人,转一下 以后持续关注主要类WKInterfaceController 和生命周期WKInterfaceController 是 WatchKit 中的 UIViewController 一样的存在,...
分类:
移动开发 时间:
2015-04-15 11:13:17
阅读次数:
135