#import?<UIKit/UIKit.h>
@interface?ViewController?:?UIViewController
@end
#import?"ViewController.h"
@interface?ViewController?()<UIScrollViewDelegate>
@property(nonatomic,?strong)?N...
分类:
移动开发 时间:
2014-12-11 12:33:03
阅读次数:
186
Single View Application 改成空模板的歩揍(xcode6.0.1):1.删除info.plist 中的Main Storyboard file base name 选项2.将ViewController的class改成UIViewController,ViewControlle...
分类:
其他好文 时间:
2014-12-11 00:06:32
阅读次数:
182
#import "ViewController.h"@interface ViewController (){ UIView *_gee; //定义的实例变量 UIView *_red;}@end@implementation ViewController- (void)viewDidLoad { ...
分类:
移动开发 时间:
2014-12-09 21:16:00
阅读次数:
167
#import "ViewController.h"@interface ViewController (){ NSArray *pickerArray;}@property (weak, nonatomic) IBOutlet UIPickerView *myPickerView;@end@...
分类:
移动开发 时间:
2014-12-09 15:19:44
阅读次数:
239
有些情况下,我们发现有一些界面上的控件是可以复用的如果每次都拷贝这些控件过去,就是比较麻烦。所以,就用一个xib文件,创建一个view,把要复用的控件,放在里面组成一个view,然后在其他的ViewController里面引用就行了。这样会方便很多。第一步:创建一个SingleViewApplica...
分类:
移动开发 时间:
2014-12-08 19:07:56
阅读次数:
210
每个view都有一个viewController。且view的生命周期也在viewController里面。所以在view释放之前,viewcontroller是不可以释放的。那viewController的生命周期到底是怎么样的呢?和我一步一步来看吧。step1:initWithNib viewC...
分类:
其他好文 时间:
2014-12-08 17:31:58
阅读次数:
272
按钮在执行frame动画的时候怎么响应触发事件?代码中效果(请注意,我并没有点击到按钮,而是点击到按钮的终点frame值处):对应的代码://// ViewController.m// TapButton//// Created by YouXianMing on 14/12/7.// Co...
分类:
其他好文 时间:
2014-12-08 00:38:27
阅读次数:
294
1 // 2 // ViewController.m 3 // Blocks 4 // 5 // Created by apple on 13-7-5. 6 // Copyright (c) 2013年 itcast. All rights reserved. 7 // 8...
分类:
其他好文 时间:
2014-12-07 01:15:37
阅读次数:
278
mvc模式大家都很清楚了!最大的好处就是条理清晰一点,view和数据分开,在viewController中只要处理view和数据的逻辑就好了,甚至于逻辑都在model中处理,嗯想说什么呢,过去两个礼拜吧,都在做一件很挫的事情:model都是这样子写的:@interface SPExangeModel...
分类:
移动开发 时间:
2014-12-06 18:06:03
阅读次数:
242
Controller: 1 // 2 // ViewController.m 3 // Weibo 4 // 5 // Created by hellovoidworld on 14/12/4. 6 // Copyright (c) 2014年 hellovoidworld. All rig...
分类:
移动开发 时间:
2014-12-06 01:25:21
阅读次数:
301