- 博客(11)
- 收藏
- 关注
原创 JsonParser
[ { "novelname":"西游记", "novelauthor":"吴承恩", "novelpage":100000 }, { "novelname":"水浒传", "novelauthor":"施耐庵", "novelpage":100000 }, { "novelname":"还珠
2015-03-01 22:12:34
784
原创 table的编辑.删除
#import "AppDelegate.h" #import "ViewController.h" @interface AppDelegate () @end //编辑步骤: //1.让tableView处于编辑状态 //2.让cell处于编辑状态 //3.告诉cell,它的编辑样式 //4.提交编辑结果 @im
2015-03-01 22:08:01
351
原创 搜索框
#import "AppDelegate.h" #import "MainViewController.h" @interface AppDelegate () @end @implementation AppDelegate -(void)dealloc { [_window release]; [super dea
2015-03-01 22:05:39
335
原创 UITableView的协议
UITableViewDelegate> UITableViewDataSource>比较重要 协议的执行流程:(注意:每个协议完整执行之后才会走下个流程) 1.先走有多少个section的协议: - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return
2015-03-01 22:01:57
360
原创 导航视图控制器
APPDELEGATE #import @interface AppDelegate : UIResponder UIApplicationDelegate> @property (retain, nonatomic) UIWindow *window; @end #import "AppDelegate.h" #import "Mai
2015-03-01 21:49:01
357
原创 图片旋转,手势
主程序 #import "MainViewController.h" @interface MainViewController () //不需要外界知道的属性,不要在.h里声明,在此处 @property(nonatomic,retain) UIImageView *imageview; @end @implementat
2015-03-01 21:42:43
518
原创 关灯游戏
方法一:用自定义button类做继承于UIButton - (void)createView { for (int i = 0; i 4; i++) { for (int j = 0; j 4; j++) { MyButton *button = [[MyButton alloc] init];
2015-03-01 21:38:25
439
原创 OC 字典
字典是无序的 数组是有序的 字典分为:可变字典和不可变字典 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
2015-03-01 21:36:58
376
原创 NSArray
NSArray的基本应用笔记 NSString *string1 = @"two"; NSString *string2 = @"one"; //创建数组 NSArray *array1 = [NSArray arrayWithObjects:string1,string2, nil]; NSAr
2015-03-01 21:32:44
311
原创 OC 数组,字符串的拼接
1.OC的数组成员是任意的对象指针 与C中的链表结构类似(以nil结尾) 一切的数组操作不能越界 OC的数组分为不可变数组 NSArray 可变数组 NSMutableArray ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14
2015-03-01 21:30:25
1270
原创 UIScrollView
程序运行流程: main->AppDelegate- >创建window- >根视图控制器ViewController(初始化init-->load view-->viewDidLoad) 注意:进图viewController之后,第一次访问视图(view)的时候(self.view),会判断是否已经创建了view,如果没有,接着走load view,viewDidLoad UIScr
2015-01-25 18:44:32
418
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人