03 2015 档案
摘要:#pragma mark -代理方法#pragma mark 设置cell表格高度-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ return 60;}#p...
阅读全文
摘要://// MJViewController.m// 02-UITableView02-访淘宝列表的删除样式//// Created by apple on 13-11-30.// Copyright (c) 2013年 itcast. All rights reserved.//#import "M...
阅读全文
摘要:一、UITableView的代理方法#pragma mark 每一行的高度- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath#pragma mark 选中了某一行...
阅读全文
摘要:一 UITableView Delegate 方必须遵循UITableViewDelegate协议cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; 这句是定义cell右边的尖角号#pragma mark - 代理方法#...
阅读全文
摘要://// MJViewController.m// 01-UITableView01-多组数组展示//// Created by apple on 13-11-28.// Copyright (c) 2013年 itcast. All rights reserved.//#import "MJVie...
阅读全文
摘要:一 创建表格,并把表格添加到控制器 UITableView *tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleGrouped];//创建表格 指定表格的宽高为self.vi...
阅读全文
摘要:#import "MJViewController.h"#define kCount 8 //定义宏,程序中经常使用,方便扩展@interface MJViewController () { UIPageControl *_pageControl;}@end@implementation MJVi...
阅读全文
摘要:一 大图片展示#import "MJViewController.h"@interface MJViewController (){ UIScrollView *_scrollView;//方但全局调用定义成成员变量}@end@implementation MJViewController- (v...
阅读全文
摘要:一 UIScrollView 的基本属性 UIScrollView *scrollView = [[UIScrollView alloc] init];//创建UIScrollView scrollView.frame = CGRectMake(0, 0, 250, 250); // frame...
阅读全文

浙公网安备 33010602011771号