摘要: 1、案例如图2、代码TextKit02ViewController.h#import @interface TextKit02ViewController : UIViewController@property (nonatomic,strong) IBOutlet UITextView *text... 阅读全文
posted @ 2014-06-08 14:11 so_tm_what 阅读(710) 评论(0) 推荐(0)
摘要: 1、案例视图,如下图2、代码TextKit01ViewController.h#import @interface TextKit01ViewController : UIViewController@property (nonatomic,strong) IBOutlet UITextView *... 阅读全文
posted @ 2014-06-08 13:38 so_tm_what 阅读(324) 评论(0) 推荐(0)
摘要: WTDelegate#import @protocol WTDelegate @required- (void)sleep;- (void)eat;- (void)work;@endWTPhilosopher.h#import #import "WTDelegate.h"@interface WTP... 阅读全文
posted @ 2014-06-08 10:13 so_tm_what 阅读(139) 评论(0) 推荐(0)
摘要: 使用单例模式的类:UIApplicationUIAccelerometerNSUserDefaultsNSNotificationCenterNSFileManagerNSBundle等Singleton.h#import @interface Singleton : NSObject// 始终返回... 阅读全文
posted @ 2014-06-08 09:46 so_tm_what 阅读(172) 评论(0) 推荐(0)