在xocde5中执行的顺序是prepareForSegue、viewDidLoad、didSelectRowAtIndexPath,在xcode6中执行的顺序是 prepareForSegue、didSelectRowAtIndexPath、viewDidLoad具体程序见http://downlo...
分类:
其他好文 时间:
2014-11-29 22:55:08
阅读次数:
249
#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; int arr[4][4]={ 1,0...
分类:
其他好文 时间:
2014-11-29 21:31:48
阅读次数:
258
自从iOS7 导航控制器导航控制条的translucent属性默认为YES 后,在项目中有时候总会遇到这样或那样有关视图控制器的根视图位置引发的问题。比如在导航控制器的RootViewController里的时候,这时你会发现如果你在- (void)viewDidLoad{ NSLog(@"%f"....
分类:
移动开发 时间:
2014-11-29 18:57:35
阅读次数:
339
效果图:工程图:此代码需要加入第三方库GifView.代码:RootViewController.m#import "RootViewController.h"//加入头文件#import "GifView.h"- (void)viewDidLoad{ [super viewDidLoad];...
分类:
其他好文 时间:
2014-11-28 17:50:48
阅读次数:
215
效果图:工程图:此代码需要加入第三方库NTChartView.代码:#import "RootViewController.h"//加入头文件#import "NTChartView.h"- (void)viewDidLoad{ [super viewDidLoad]; // Do an...
分类:
其他好文 时间:
2014-11-28 09:53:17
阅读次数:
183
1 在代码中使用默认UITableViewCell生成单元时,若事先没在viewDidLoad中注册,则不能使用dequeueReusableCellWithIdentifier: forIndexPath:方法,否则报错。如UITableViewCell *cell = [tableView de...
分类:
移动开发 时间:
2014-11-26 15:58:24
阅读次数:
164
#import "ViewController.h"@interface ViewController (){ UILabel *dynamicLabel;}@end@implementation ViewController- (void)viewDidLoad { if (!dynamic...
分类:
移动开发 时间:
2014-11-25 15:50:38
阅读次数:
195
实现滑动1.在viewDidLoad中对scrollview的contentSize属性赋值 告诉他滑动范围。实现缩放1.在storyboard的scrollview的attribute标签中设置zoom的范围。2.实现一个UIScrollViewDelegate[scrollview的委托],并将...
分类:
移动开发 时间:
2014-11-25 14:20:03
阅读次数:
148
如何实现聊天软件的图片显示的剪裁后的气泡呢 ? Objective-C: ? -?(void)viewDidLoad?{
????[super?viewDidLoad];
????
????UIImageView?*ImageView01?=?[[UIImageView?alloc]?init];
??...
分类:
移动开发 时间:
2014-11-25 09:25:32
阅读次数:
239
如何实现聊天软件的图片显示的剪裁后的气泡呢
Objective-C:- (void)viewDidLoad {
[super viewDidLoad];
UIImageView *ImageView01 = [[UIImageView alloc] init];
[ImageView01 setFrame:CGRectMake(90, 190, ...
分类:
移动开发 时间:
2014-11-24 22:29:37
阅读次数:
295