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