摘要: 一、初始化方法- (instancetype)initWithTitle:(NSString*)title delegate:(id)delegate cancelButtonTitle:(NSString*)cancelButtonTitle destructiveButtonTitle:(NSS... 阅读全文
posted @ 2015-08-08 15:15 懒懒初阳 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 一、ScrollView常用方法和属性@property(nonatomic)CGPointcontentOffset;设置滚动的偏移量@property(nonatomic)CGSizecontentSize;设置滑动区域@property(nonatomic,assign)id delega... 阅读全文
posted @ 2015-08-08 14:27 懒懒初阳 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-08-08 14:22 懒懒初阳 阅读(305) 评论(0) 推荐(0) 编辑
摘要: UIPickerView是iOS中的原生选择器控件,使用方便,用法简单,效果漂亮。@property(nonatomic,assign)id dataSource; @property(nonatomic,assign)id delegate;设置数据源和代理@property(no... 阅读全文
posted @ 2015-08-08 14:17 懒懒初阳 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 一、初始化与三种加载方式 UIWebView继承与UIView,因此,其初始化方法和一般的view一样,通过alloc和init进行初始化,其加载数据的方式有三种:第一种:- (void)loadRequest:(NSURLRequest*)request;这是加载网页最常用的一种方式,通过一个网... 阅读全文
posted @ 2015-08-08 14:14 懒懒初阳 阅读(1066) 评论(0) 推荐(0) 编辑
摘要: #import"FirstVC.h"@implementationFirstVC/*创建xib过程1 创建xib(名字和类名相同)2 文件拥有者为类名3 和类的view连线*/- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundl... 阅读全文
posted @ 2015-08-08 13:44 懒懒初阳 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 一 UIVIew 常见属性1.frame 位置和尺寸(以父控件的左上角为原点(0,0))2.center 中点 (以父控件的左上角为原点(0,0))3.bounds 位置和尺寸(以自己的左上角为原点 (0,0))4.transform 形变属性(缩放,旋转)5.backgroundColor 背景颜... 阅读全文
posted @ 2015-08-08 12:09 懒懒初阳 阅读(502) 评论(0) 推荐(0) 编辑
摘要: [cpp]view plaincopyprint?[UIApplicationsharedApplication].networkActivityIndicatorVisible=YES;//显示[UIApplicationsharedApplication].networkActivityIndi... 阅读全文
posted @ 2015-08-05 22:00 懒懒初阳 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 引言:枚举值它是一个整形(int) 并且,它不参与内存的占用和释放,枚举定义变量即可直接使用,不用初始化.在代码中使用枚举的目的只有一个,那就是增加代码的可读性.使用:枚举的定义如下:[csharp]view plaincopytypedefenum{//以下是枚举成员TestA=0,TestB,T... 阅读全文
posted @ 2015-08-04 22:46 懒懒初阳 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-08-04 22:44 懒懒初阳 阅读(121) 评论(0) 推荐(0) 编辑