上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: @interface ViewController (){ Shape *_shape;}@end@implementation ViewController- (void)loadView{ //设置画板 self.view=[[SimpleDrawBoard alloc]ini... 阅读全文
posted @ 2014-09-04 21:37 曦阳 阅读(421) 评论(0) 推荐(0)
摘要: CGContextRef context=UIGraphicsGetCurrentContext(); CGColorSpaceRef colorSp=CGColorSpaceCreateDeviceRGB(); CGFloat components[]={1.0,0.0,0.0,1.0... 阅读全文
posted @ 2014-09-02 22:06 曦阳 阅读(735) 评论(0) 推荐(0)
摘要: //// ViewController.m// 图片存取//// Created by apple on 14-8-28.// Copyright (c) 2014年 apple. All rights reserved.//#import "ViewController.h"#import... 阅读全文
posted @ 2014-08-28 22:51 曦阳 阅读(177) 评论(0) 推荐(0)
摘要: //// ChannelViewController.m// MyMangoTV//// Created by apple on 14-8-19.// Copyright (c) 2014年 戴维营教育. All rights reserved.//#import "ChannelViewC... 阅读全文
posted @ 2014-08-22 21:50 曦阳 阅读(262) 评论(0) 推荐(0)
摘要: - (instancetype)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { _scrollView = [[UIScrollView alloc] initWith... 阅读全文
posted @ 2014-08-22 17:25 曦阳 阅读(300) 评论(0) 推荐(0)
摘要: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] init... 阅读全文
posted @ 2014-08-20 20:23 曦阳 阅读(206) 评论(0) 推荐(0)
摘要: 代码块本质上是和其他变量类似。不同的是,代码块存储的数据是一个函数体。使用代码块是,你可以像调用其他标准函数一样,传入参数数,并得到返回值。脱字符(^)是块的语法标记。按照我们熟悉的参数语法规约所定义的返回值以及块的主体(也就是可以执行的代码)。下图是如何把块变量赋值给一个变量的语法讲解:按照调用函... 阅读全文
posted @ 2014-08-20 19:41 曦阳 阅读(128) 评论(0) 推荐(0)
摘要: //// AppDelegate.m// CustomTabBar-0818//// Created by apple on 14-8-18.// Copyright (c) 2014年 apple. All rights reserved.//#import "AppDelegate.h"... 阅读全文
posted @ 2014-08-18 22:26 曦阳 阅读(340) 评论(0) 推荐(0)
摘要: 程序运行的生命周期对象的消失和出现的过程viewDidLoad调用的时机是self.view 的getter方法的调用后根据UIApplicationMain函数,程序将进入AppDelegate.m,这个文件是xcode新建工程时自动生成的。下面看一下AppDelegate.m文件,这个关乎着应用... 阅读全文
posted @ 2014-08-16 09:26 曦阳 阅读(147) 评论(0) 推荐(0)
摘要: IOS 四种保存数据的方式(2013-04-02 15:04:53)转载▼ 在iOS开发过程中,不管是做什么应用,都会碰到数据保存的问题。将数据保存到本地,能够让程序的运行更加 流畅,不会出现让人厌恶的菊花形状,使得用户体验更好。下面介绍⼀一下数据保存的方式:1.NSKeyedArchiver... 阅读全文
posted @ 2014-08-09 19:30 曦阳 阅读(406) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页