摘要: 布局行列关系 列与X轴 行与Y轴列% 行/1.//获取当前屏幕的宽度CGFloat swidth = [UIScreen mainScreen].bounds.size.width;//边界到控件的距离int space = (swidth - 260)/2;for (int i = ... 阅读全文
posted @ 2015-08-27 20:47 ios-C 阅读(171) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import "Person.h"@interface ViewController (){ UIImageView *_imgView; NSMutableArray *_personsArray; //存放所有注册用户的信息}@end@i... 阅读全文
posted @ 2015-08-26 21:10 ios-C 阅读(186) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate{ //全局变量 UILabel*lablel;}-(void)dealloc{ self.window=nil; [... 阅读全文
posted @ 2015-08-25 20:43 ios-C 阅读(155) 评论(0) 推荐(0) 编辑
摘要: main#import #import "AppDelegate.h"//UIApplication对象:这是应用程序的象征,是iOS程序第一个创建的对象。每一个程序都有自己的UIApplication对象//UIApplication对象的创建:[UIApplication sharedAppli... 阅读全文
posted @ 2015-08-25 20:42 ios-C 阅读(228) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h"@interface AppDelegate ()@property(nonatomic,strong)NSArray*app;@end@implementation AppDelegate-(NSArray *)app{ if (_app == ni... 阅读全文
posted @ 2015-08-25 20:38 ios-C 阅读(164) 评论(0) 推荐(0) 编辑
摘要: #import #import "AppDelegate.h"/*UIApplication:这个应用程序的象征,是程序第一个创建的对象,每个程序都有自己的 UIApplication对象 UIApplication对象的创建:[UIApplication sharedApplication];利用... 阅读全文
posted @ 2015-08-24 12:04 ios-C 阅读(132) 评论(0) 推荐(0) 编辑
摘要: #import #define PATH1 @"/Users/aoyolo5/Desktop/文件管理"#define PATH2 @"/Users/aoyolo5/Desktop/文件管理/name.txt"#define PATH3 @"/Users/aoyolo5/Desktop/array.... 阅读全文
posted @ 2015-08-19 20:15 ios-C 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Student.h#import @interface Student : NSObject@property (nonatomic, copy) NSString *name;@property (nonatomic, assign) int ID;@endStudent.m#import "St... 阅读全文
posted @ 2015-08-19 20:13 ios-C 阅读(133) 评论(0) 推荐(0) 编辑
摘要: BoosProtocol.h#import //创建协议@protocol BoosProtocol @required//必须实现的方法-(NSInteger)buyWood;@optional//可选实现-(void)text3;@endWorkeProtocol.h#import @proto... 阅读全文
posted @ 2015-08-19 19:26 ios-C 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Person.h#import @interface Person : NSObject-(void)eat;@end//2.第二种方法//分类的声明//创建分类@interface ()@interface Person (MyCategory)-(void)run;@endPerson.m#i... 阅读全文
posted @ 2015-08-19 18:06 ios-C 阅读(143) 评论(0) 推荐(0) 编辑