03 2015 档案

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