摘要: UIScrollView的属性总结属性作用CGPoint contentOffSet监控目前滚动的位置CGSize contentSize滚动范围的大小UIEdgeInsets contentInset视图在scrollView中的位置iddelegate设置协议BOOL directionalLockEnabled指定控件是否只能在一个方向上滚动BOOL bounces控制控件遇到边框是否反弹BOOL alwaysBounceVertical控制垂直方向遇到边框是否反弹BOOL alwaysBounceHorizontal控制水平方向遇到边框是否反弹BOOL pagingEnabled控制控 阅读全文
posted @ 2013-08-26 00:44 火红的云彩 阅读(133) 评论(0) 推荐(0) 编辑
摘要: // 创建文件管理器 NSFileManager *fm=[NSFileManager defaultManager]; //获取路径 NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; [fm changeCurrentDirectoryPath:documentsDirectory]; ... 阅读全文
posted @ 2013-08-21 16:12 火红的云彩 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 0 CGContextRef context = UIGraphicsGetCurrentContext(); 设置上下文1 CGContextMoveToPoint 开始画线2 CGContextAddLineToPoint 画直线4 CGContextAddEllipseInRect 画一椭圆4 CGContextSetLineCap 设置线条终点形状4 CGContextSetLineDash 画虚线4 CGContextAddRect 画一方框4 CGContextStrokeRect 指定矩形4 CGContextStrokeRectWithWidth 指定矩形线宽度4 CGCont 阅读全文
posted @ 2013-08-20 12:49 火红的云彩 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 一、创建一个 Tabbed Application.默认创建的是带有两个Tab的工程。二、在AppDelegate.h里面添加@property(strong,nonatomic)UINavigationController*NaviView1Controller;@property(strong,nonatomic)UINavigationController*NaviView2Controller;三、修改AppDelegate.m文件的didFinishLaunchingWithOptions函数,在这里我们设置相应的UINavigationController.-(BOOL)appli 阅读全文
posted @ 2013-08-18 15:42 火红的云彩 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 一、手动创建UITabBarController 最常见的创建UITabBarController的地方就是在application delegate中的applicationDidFinishLaunching:方法,因为UITabBarController通常是作为整个程序的rootViewController的,我们需要在程序的window显示之前就创建好它,具体步骤如下: 1、创建一个UITabBarController对象 2、创建tabbarcontroller中每一个tab对应的要显示的对象 3、通过UITabBarController的viewController属性将... 阅读全文
posted @ 2013-08-11 10:35 火红的云彩 阅读(510) 评论(0) 推荐(0) 编辑