摘要:
DIY a tableviewcell :- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString*)reuseIdentifier{self= [superinitWithStyle:stylereuseIdentifier:reuseIdentifier];if(self) {UIView*testView = [[UIViewalloc]initWithFrame:CGRectMake(0,0,140,42)]; testView.backgroundColor= [UIColorredColor] 阅读全文
posted @ 2014-04-13 13:29
Levi.duan
阅读(272)
评论(0)
推荐(0)
摘要:
uitableView review yesterday’s knowledge :folding group :--------------------------------------------------------------------------------------------------------------------------------------------------teacher code :-(UIView*)tableView:(UITableView*)tableView viewForHeaderInSection:(NSInteger)secti 阅读全文
posted @ 2014-04-13 13:26
Levi.duan
阅读(385)
评论(0)
推荐(0)
摘要:
学英语。所以用英文来记录笔记。Define the dataSource:@implementationViewController{NSMutableArray*dataSourse; UITableView*myTableView;}Define the dataSource array: dataSourse= [NSMutableArrayarray];for(inti=0; i@endTheUITableViewDataSource have two function which must be implemented:- (UITableViewCell*)tableView:.. 阅读全文
posted @ 2014-04-13 13:21
Levi.duan
阅读(348)
评论(0)
推荐(0)
摘要:
实现图片的滚动,并且自动停止在每张图片上- (void)viewDidLoad{ [superviewDidLoad];UIScrollView*scrollView = [[UIScrollViewalloc]initWithFrame:CGRectMake(0,20,320,200)];for(inti=1; i@property(weak,nonatomic)IBOutletUILabel*myLabel;@end@implementationQFViewController{CGFloatpreScale;}- (void)viewDidLoad{ [superviewDidLoad] 阅读全文
posted @ 2014-04-13 13:20
Levi.duan
阅读(163)
评论(0)
推荐(0)
摘要:
加两个UI模块- (void)viewDidLoad{ [selfbegin1]; [selfbegin2]; [superviewDidLoad];// Do any additional setup after loading the view from its nib.}-(void)begin1{UIActivityIndicatorView*viView = [[UIActivityIndicatorViewalloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; viView.cen. 阅读全文
posted @ 2014-04-13 13:19
Levi.duan
阅读(263)
评论(0)
推荐(0)
摘要:
添加个导航栏: Xib1*xib1 = [[Xib1alloc]initWithNibName:@"Xib1"bundle:nil];UINavigationController*navController = [[UINavigationControlleralloc]initWithRootViewController:xib1];self.window.rootViewController= navController;xib1:- (IBAction)nextPage:(id)sender {self.title=@"一";Xib2*xib2= 阅读全文
posted @ 2014-04-13 13:18
Levi.duan
阅读(279)
评论(0)
推荐(0)

浙公网安备 33010602011771号