摘要:
一、UITextField1.常见属性@property(nonatomic,retain) UIView *leftView; // 设置文本框左边显示什么控件,可以让文本框的内容往右边挪动@property(nonatomic) UITextFieldViewMode leftViewMode; // 设置左边控件的显示模式/* UITextFieldViewMode的取值 UITextFieldViewModeNever, 永远不显示 UITextFieldViewModeWhileEditing, 当文本框正在编辑的时候显示 UITextFieldViewModeUnle... 阅读全文
摘要:
一、UIButton1.内部结构1> UIButton内部默认有个UIImageView、UILabel控件,可以分别用下面属性访问:@property(nonatomic,readonly,retain) UIImageView *imageView;@property(nonatomic,readonly,retain) UILabel *titleLabel;2> UIButton之所以能显示文字,完全是因为它内部的titleLabel也就是说,UIButton的setTitle:forState:方法设置的字符串就是显示到了titleLabel上3> UIButton 阅读全文
摘要:
1.什么是URL?URL是某个资源的唯一路径,通过这个路径就能访问对应的资源2.URL的组成协议头://全路径* 协议头就代表资源的类型,比如http代表网络服务器资源,ftp代表ftp文件服务器资源,file代表本地资源3.举例http://www.baidu.comhttp://www.sina.com/a.jpgftp://192.168.3.251/abc.mp4file:///Users/apple/Desktop/abc.txt4.获得项目中某个文件的资源路径(URL)NSURL *url = [[NSBundle mainBundle] URLForResource:@" 阅读全文