摘要: 1、案例视图,如下图2、代码TextKit01ViewController.h#import @interface TextKit01ViewController : UIViewController@property (nonatomic,strong) IBOutlet UITextView *... 阅读全文
posted @ 2014-06-08 13:38 so_tm_what 阅读(314) 评论(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 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 使用单例模式的类:UIApplicationUIAccelerometerNSUserDefaultsNSNotificationCenterNSFileManagerNSBundle等Singleton.h#import @interface Singleton : NSObject// 始终返回... 阅读全文
posted @ 2014-06-08 09:46 so_tm_what 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1、案例介绍:iPad上使用多种风格的ModalView,如图01,02,03,04,05图01图02图03图04图052、代码ViewController.h#import @interface ViewController : UIViewController- (IBAction)onclic... 阅读全文
posted @ 2014-06-07 01:01 so_tm_what 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 1、案例介绍:如图01,02,点击openByView弹出由故事版直接连接的popover视图;点击openByCoding弹出由代码创建的popover视图。图01图022、案例步骤:2.1、创建案例工程,新增iPadC02SelectTableViewController类,如图03,04图03... 阅读全文
posted @ 2014-06-06 23:12 so_tm_what 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1、案例介绍:演示UISplitViewController的基本使用,如图01,02,点击左侧MasterView中的行会改变右侧DetailView中的颜色。图01图022、案例步骤:2.1、选择Simple View Aplication新建项目,如图03;图032.2、生成项目结构如图04,... 阅读全文
posted @ 2014-06-06 03:03 so_tm_what 阅读(822) 评论(0) 推荐(0) 编辑
摘要: 1、案例介绍:表视图中单元格的增加、删除、移动,如图01,02图01图022、.h#import @interface CQ26ViewController : UIViewController@property (weak,nonatomic) IBOutlet UINavigationItem ... 阅读全文
posted @ 2014-06-03 23:20 so_tm_what 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1、使用表视图的分组,静态单元格布局,如图01图012、Main.storyboard 阅读全文
posted @ 2014-06-03 22:44 so_tm_what 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1、案例介绍:具备索引功能的分节表视图,如图01图012、team_dictionary.plist A组 A1-南非 A2-墨西哥 A3-乌拉圭 A4-法国 B组 B1-阿根廷 ... 阅读全文
posted @ 2014-06-03 22:35 so_tm_what 阅读(469) 评论(2) 推荐(0) 编辑
摘要: 1、案例介绍:一个具备搜索功能的表视图,如图01,02,03图01图02图032、Main.storyboard,如图04图043、.h#import @interface CQ23ViewController : UITableViewController// 搜索栏@property (weak... 阅读全文
posted @ 2014-06-03 22:26 so_tm_what 阅读(546) 评论(0) 推荐(0) 编辑