Ruby是一种功能强大的面向对象的脚本语言Gem是一个管理Ruby库和程序的标准包,它通过Ruby Gem(如 http://rubygems.org/ )源来查找、安装、升级和卸载软件包,非常的便捷。CocoaPods是iOS最常用最有名的类库管理工具安装cocoapods1.移除ruby的源地址... Read More
#pragma mark -代理方法#pragma mark 设置cell表格高度-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ return 60;}#p... Read More
//// MJViewController.m// 02-UITableView02-访淘宝列表的删除样式//// Created by apple on 13-11-30.// Copyright (c) 2013年 itcast. All rights reserved.//#import "M... Read More
一、UITableView的代理方法#pragma mark 每一行的高度- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath#pragma mark 选中了某一行... Read More
一 UITableView Delegate 方必须遵循UITableViewDelegate协议cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; 这句是定义cell右边的尖角号#pragma mark - 代理方法#... Read More
//// MJViewController.m// 01-UITableView01-多组数组展示//// Created by apple on 13-11-28.// Copyright (c) 2013年 itcast. All rights reserved.//#import "MJVie... Read More
一 创建表格,并把表格添加到控制器 UITableView *tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleGrouped];//创建表格 指定表格的宽高为self.vi... Read More
#import "MJViewController.h"#define kCount 8 //定义宏,程序中经常使用,方便扩展@interface MJViewController () { UIPageControl *_pageControl;}@end@implementation MJVi... Read More
一 大图片展示#import "MJViewController.h"@interface MJViewController (){ UIScrollView *_scrollView;//方但全局调用定义成成员变量}@end@implementation MJViewController- (v... Read More
一 UIScrollView 的基本属性 UIScrollView *scrollView = [[UIScrollView alloc] init];//创建UIScrollView scrollView.frame = CGRectMake(0, 0, 250, 250); // frame... Read More