码迷,mamicode.com
首页 >  
搜索关键字:viewcontroller    ( 2658个结果
新知识
block作为变量时,属性应为(nonatomic,copy),在注册通知时需要在dealloc方法中remove掉。viewcontroller执行顺序,init loadview viewdidload viewwillappear viewdidappear。.在一个对象的方法里面:self....
分类:其他好文   时间:2015-03-31 12:10:57    阅读次数:115
UIView 的transitionFromView方法实现视图切换
#import "ViewController.h"@interface ViewController ()@property (strong, nonatomic) IBOutlet UIImageView *imageViewFirst;@property (strong, nonatomic)...
分类:其他好文   时间:2015-03-31 12:08:47    阅读次数:118
CALayer实现遮罩效果
#import "ViewController.h"@interface ViewController ()@property(nonatomic,strong)CALayer *imageLayer;@property(nonatomic,strong)CALayer *maskLayer;@pr...
分类:其他好文   时间:2015-03-31 10:46:38    阅读次数:128
【我们都爱Paul Hegarty】斯坦福IOS8公开课个人笔记2 Xcode、Auto Layout及MVC
接着上一话来讲,上一话中讲到了MVC,那么MVC在IOS8开发中是如何应用的呢?Paul Hegarty老师给我们展示了一个计算器的Demo,首先新建一个工程,老师把AppDelegate.swift、LaunchScreen.xib和Images.xcassests文件放到了supporting Files文件夹中,那么剩下的两个文件ViewController.swift就是MVC中的C(控制...
分类:移动开发   时间:2015-03-31 09:22:27    阅读次数:1536
通过layer的contents属性来实现uiimageview的淡入切换
#import "ViewController.h"@interface ViewController ()@property(nonatomic,strong)CALayer *imageLayer;@end@implementation ViewController- (void)viewDid...
分类:其他好文   时间:2015-03-31 00:25:10    阅读次数:166
用于mask遮罩效果的图片配合resizableImage使用
用于mask遮罩效果的图片配合resizableImage使用效果:作为素材用的图片:源码://// ViewController.m// Rect//// Created by YouXianMing on 15/3/29.// Copyright (c) 2015年 YouXianMin...
分类:其他好文   时间:2015-03-30 22:39:59    阅读次数:115
iOS 两个viewcontroller之间的delegate传值
第二个界面往第一个界面传值 第二个界面 //第二个界面制定协议 @protocol ChuanZhiDelegate NSObject> - (void)chuanzhid; @end @interface ViewController2 : UIViewController @property(nonatomic,assign)idChuanZhiDelegate>c...
分类:移动开发   时间:2015-03-30 16:35:06    阅读次数:151
iOS学习——UI相关小结
1 StoryBoard:在Info.plist中可以查看Main storyboard,即入口storyboard,默认为main.storyboard,可以修改为自己创建的storyboard。2 ViewController每个viewController都绑定有一个类文件,程序执行时,会进入...
分类:移动开发   时间:2015-03-29 23:24:06    阅读次数:148
基础UI<02>
本来想把做过的例子复述一遍,奈何时间太有限了。 MVC,这个念叨多遍的设计模式,通过做了一个微博的浏览界面才深有体会。去年刚参加工作,也是做一个类似于此的东西,做了好久。在ViewController中,计算cell的高度,而且计算了两遍,把填充Cell数据的内容也放在了ViewControl...
分类:其他好文   时间:2015-03-29 19:30:20    阅读次数:129
通过GCD、NSOperationQueue队列、NSThread三种方法来创建多线程
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UILabel *remindLabel;@end@implementation ViewController- (v...
分类:编程语言   时间:2015-03-29 17:56:08    阅读次数:142
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!