2016年2月21日

UICollectionView

摘要: #import "ViewController.h"#define ID @"reuse"#import "MyCollectionViewCell.h"#import "MyCollectionReusableView.h"#define kWidth self.view.frame.size.w 阅读全文

posted @ 2016-02-21 08:46 哥依然帅气 阅读(153) 评论(0) 推荐(0) 编辑

可视化编程之storyboard

摘要: #import "RootViewController.h"#import "SecondViewController.h"@interface RootViewController ()- (IBAction)refist:(id)sender;@property (strong, nonatom 阅读全文

posted @ 2016-02-21 08:43 哥依然帅气 阅读(140) 评论(0) 推荐(0) 编辑

可视化编程之xib

摘要: #import "LoginViewController.h"@interface LoginViewController ()@end@implementation LoginViewController- (IBAction)click:(id)sender { [self dismissVie 阅读全文

posted @ 2016-02-21 08:41 哥依然帅气 阅读(89) 评论(0) 推荐(0) 编辑

UITableView

摘要: #import "ViewController.h"#import "Student.h"@interface ViewController ()@property (nonatomic, retain) NSMutableArray *dataArray;@property (nonatomic, 阅读全文

posted @ 2016-02-21 08:36 哥依然帅气 阅读(115) 评论(0) 推荐(0) 编辑

UITabBarController

摘要: #import "AppDelegate.h"#import "FirstViewController.h"#import "SecondViewController.h"#import "ThirdViewController.h"#import "FourthViewController.h"@ 阅读全文

posted @ 2016-02-21 08:34 哥依然帅气 阅读(82) 评论(0) 推荐(0) 编辑

UINavigationController

摘要: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] initWi 阅读全文

posted @ 2016-02-21 08:28 哥依然帅气 阅读(100) 评论(0) 推荐(0) 编辑

UIScrollView

摘要: #import "RootViewController.h"//定义保存屏幕宽度和高度的宏#define kWidth self.view.frame.size.width#define kHeidth self.view.frame.size.height@interface RootViewCo 阅读全文

posted @ 2016-02-21 08:26 哥依然帅气 阅读(125) 评论(0) 推荐(0) 编辑

触摸,手势

摘要: - (void)viewDidLoad { [super viewDidLoad]; UIImageView *imageView = [[[UIImageView alloc] initWithFrame:CGRectMake(50, 50, 275, 500)] autorelease]; im 阅读全文

posted @ 2016-02-21 08:24 哥依然帅气 阅读(113) 评论(0) 推荐(0) 编辑

视图控制器

摘要: //加载根视图的方法,我们通常在这个方法中,指定根视图为我们想要的某个视图//在加载方法中,不能使用self.view这个getter方法获取根视图,因为此时视图正在加载,并没有真实存在。- (void)loadView { //创建loginView _loginView = [[LoginVie 阅读全文

posted @ 2016-02-21 08:22 哥依然帅气 阅读(145) 评论(0) 推荐(0) 编辑

封装

摘要: //重写LTView继承自UIView的布局方法,来创建子视图,并添加子视图- (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { //用参数中的frame(LTView视图整体的 阅读全文

posted @ 2016-02-21 08:19 哥依然帅气 阅读(101) 评论(0) 推荐(0) 编辑

导航