04 2014 档案
摘要: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]
阅读全文
摘要:uitableView review yesterday’s knowledge :folding group :--------------------------------------------------------------------------------------------------------------------------------------------------teacher code :-(UIView*)tableView:(UITableView*)tableView viewForHeaderInSection:(NSInteger)secti
阅读全文
摘要:学英语。所以用英文来记录笔记。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:..
阅读全文
摘要:实现图片的滚动,并且自动停止在每张图片上- (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]
阅读全文
摘要:加两个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.
阅读全文
摘要:添加个导航栏: 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=
阅读全文
摘要:ViewController 应用再第一个XIB页面创建另一个XIB页面,并且通过按钮调用它- (IBAction)GoSecond:(id)sender {secondViewController*secVC = [[secondViewControlleralloc]initWithNibName:@"secondViewController"bundle:nil]; secVC.modalTransitionStyle=UIModalPresentationPageSheet; [selfpresentViewController:secVCanimated:YESc
阅读全文

浙公网安备 33010602011771号