摘要: UIPageControll 是继承于UIControl的一个IOS系统UI控件,可以提供给开发者设计分页效果的功能。初始化方法UIPageControl * page= [[UIPageControlalloc]initWithFrame:CGRectMake(100, 100, 100, 100... 阅读全文
posted @ 2015-08-08 15:22 懒懒初阳 阅读(444) 评论(0) 推荐(0)
摘要: 一、调用打电话界面[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:[NSStringstringWithFormat:@"tel://%@",_phoneNumber]]];二、发送短消息界面调用系统的发送短信的界面,需要引入... 阅读全文
posted @ 2015-08-08 15:19 懒懒初阳 阅读(392) 评论(0) 推荐(0)
摘要: 一、初始化方法- (instancetype)initWithTitle:(NSString*)title message:(NSString*)message delegate:(id/**/)delegate cancelButtonTitle:(NSString*)cancelButtonTi... 阅读全文
posted @ 2015-08-08 15:17 懒懒初阳 阅读(227) 评论(0) 推荐(0)
摘要: 一、初始化方法- (instancetype)initWithTitle:(NSString*)title delegate:(id)delegate cancelButtonTitle:(NSString*)cancelButtonTitle destructiveButtonTitle:(NSS... 阅读全文
posted @ 2015-08-08 15:15 懒懒初阳 阅读(260) 评论(0) 推荐(0)
摘要: 一、ScrollView常用方法和属性@property(nonatomic)CGPointcontentOffset;设置滚动的偏移量@property(nonatomic)CGSizecontentSize;设置滑动区域@property(nonatomic,assign)id delega... 阅读全文
posted @ 2015-08-08 14:27 懒懒初阳 阅读(412) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-08-08 14:22 懒懒初阳 阅读(310) 评论(0) 推荐(0)
摘要: UIPickerView是iOS中的原生选择器控件,使用方便,用法简单,效果漂亮。@property(nonatomic,assign)id dataSource; @property(nonatomic,assign)id delegate;设置数据源和代理@property(no... 阅读全文
posted @ 2015-08-08 14:17 懒懒初阳 阅读(455) 评论(0) 推荐(0)
摘要: 一、初始化与三种加载方式 UIWebView继承与UIView,因此,其初始化方法和一般的view一样,通过alloc和init进行初始化,其加载数据的方式有三种:第一种:- (void)loadRequest:(NSURLRequest*)request;这是加载网页最常用的一种方式,通过一个网... 阅读全文
posted @ 2015-08-08 14:14 懒懒初阳 阅读(1106) 评论(0) 推荐(0)
摘要: #import"FirstVC.h"@implementationFirstVC/*创建xib过程1 创建xib(名字和类名相同)2 文件拥有者为类名3 和类的view连线*/- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundl... 阅读全文
posted @ 2015-08-08 13:44 懒懒初阳 阅读(288) 评论(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 懒懒初阳 阅读(538) 评论(0) 推荐(0)