@interface ViewController () @property (nonatomic,strong) NSArray *apps; //获取.plist数据 @end @implementation ViewController - (void)viewDidLoad { [super... ...
分类:
移动开发 时间:
2017-02-18 14:19:38
阅读次数:
163
[self rankWithTotalColumns:2 andWithAppW:180 andWithAppH:170]; //九宫格布局 - (void)rankWithTotalColumns:(int)totalColumns andWithAppW:(int)appW andWithApp... ...
分类:
移动开发 时间:
2017-01-09 18:57:13
阅读次数:
272
#import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(strong,nonatomic) UILabel *lblNums; @end #import "ViewController.h" @in ...
分类:
移动开发 时间:
2016-03-28 21:38:35
阅读次数:
217
for (int i=0; iself.imagearray count];
i++) {
UIButton *button = [UIButton
buttonWithType: UIButtonTypeRoundedRect];
button.frame =
CGRectMake...
分类:
移动开发 时间:
2015-04-14 13:01:30
阅读次数:
186
猫猫分享,必须精品先看效果
主要是完成了九宫格UI的搭建代码- (void)viewDidLoad {
[super viewDidLoad];
//九宫格中每个格子的宽
#define kAppViewW 80
//九宫格中每个格子的高
#define kAppViewH 90
////九宫格中有多少个格子
#define kColCount 3
//九宫格中第一行距离屏幕最上边距离...
分类:
移动开发 时间:
2015-03-20 09:20:32
阅读次数:
220
根据要求 显示图片 以九宫格形式排放
基本思路
//显示总列数 可以随意改变
int columnCount=3;
//没个格子的宽度和高度
CGFloat appW=85.0;
CGFloat appH=95.0;
//计算间隙
CGFloat appMargin=(self.view....
分类:
移动开发 时间:
2014-11-26 01:30:10
阅读次数:
220