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