UIviewController可以放入touch事件UITouch的状态://用户刚触摸屏幕时UITouchPhaseBegin//表示有触摸在屏幕上移动UITouchPhaseMoved//表示触摸仍停留在屏幕表面,不过之前一个事件之后没移动过UITouchPhaseStationary//在触...
分类:
其他好文 时间:
2015-10-07 18:49:59
阅读次数:
176
我现在学到可分栏控制器,UITabBarController.我总结了它的层次有,UITabBarController控制并且只有以个UITanBat(他是一个UIIView的子类),UITabBar他有控制着多个UIViewController,而且每个UIViewController在上面添加的...
分类:
其他好文 时间:
2015-10-07 17:21:53
阅读次数:
118
ViewController是view的controller,viewController的职责主要包括管理内部各个view的加载显示与卸载,同时负责与其他ViewController的通信和协调。在IOS中 有两类ViewController:1. 显示内容,比如UIViewController,...
分类:
移动开发 时间:
2015-10-07 17:15:34
阅读次数:
148
#import "TestViewController.h"#import "OneViewController.h"在TextViewController写入点击事件:- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{...
分类:
其他好文 时间:
2015-10-07 13:22:44
阅读次数:
176
1.设置ViewController来管理视图#import "AppDelegate.h"#import "ViewController.h"@interface AppDelegate ()@end@implementation AppDelegate- (void)dealloc{ [_...
分类:
其他好文 时间:
2015-10-06 22:03:24
阅读次数:
219
view中是不能进行UIViewController的push,pop等操作的,若进行跳转操作,一般是用代理,block,通知等实现,那如何实现在ViewController的subView中实现跳转操作呢,其实只要获取该view所在的ViewController即可。获取view所在UIViewC...
分类:
其他好文 时间:
2015-10-06 11:39:35
阅读次数:
125
将第二个文件中的textField中的值传到第一个文件的lable中第一步:重命名 typedef void (^passValueBlock) (NSString *);? @Property SenondViewController: UIViewController@Property (no....
分类:
其他好文 时间:
2015-09-29 22:10:09
阅读次数:
191
#import @interface ViewController : UIViewController@end#import "ViewController.h"@interface ViewController ()@property (nonatomic)UIImageView *qrcode...
分类:
其他好文 时间:
2015-09-29 18:49:08
阅读次数:
177
Xcode的插件安装路径: /Users/用户名/Library/Application Support/Developer/Shared/Xcode/Plug-ins黑马 微博 第一天 05如果要实现 UIViewController 里的代理方法 和 数据方法 我们就不能用UIViewContr...
分类:
其他好文 时间:
2015-09-29 16:14:24
阅读次数:
126
------创建UINavigationController---- ?? 导航控制器,继承UIViewController ?? 作用:管理多个ViewController之间的逻辑层次和切换 通过第一个视图控制器viewController, 作为导航控制器的第一个根视图控制...
分类:
其他好文 时间:
2015-09-29 10:05:04
阅读次数:
147