phoenix13

导航

 
上一页 1 ··· 9 10 11 12 13 14 15 下一页

2012年2月15日

摘要: http://blog.sina.com.cn/s/blog_661314940100ogem.htmlUIPickerView使用DEMO 阅读全文
posted @ 2012-02-15 15:15 phoenix13 阅读(251) 评论(0) 推荐(0) 编辑
 

2012年2月14日

摘要: http://stackoverflow.com/questions/3837115/display-image-from-url-retrieved-from-alasset-in-iphone display image from URL retrieved from ALAsset in iPhonehttp://stackoverflow.com/questions/1282830/uiimagepickercontroller-uiimage-memory-and-moreUIImagePickerController, UIImage, Memory and More? [clo. 阅读全文
posted @ 2012-02-14 17:30 phoenix13 阅读(543) 评论(0) 推荐(0) 编辑
 
摘要: Posted by bagusflyer0 comments本文讲述使用3.0的方法怎样从iPhone的照片库或照相机获取图像。我们将创建一个应用程序从图片库或照相机获取图像并显示与屏幕之上。下面是截图:1. 创建一个新的 View Based 程序我将其命名为 photoApp2. 创建IBOutlet 和 IBAction打开photoAppViewController.h加入下面代码:#import @interface PhotoAppViewController : UIViewController < UIImagePickerControllerDelegate, UINa 阅读全文
posted @ 2012-02-14 13:38 phoenix13 阅读(2183) 评论(1) 推荐(1) 编辑
 

2012年2月9日

摘要: 1.每个ios程序都有一个这样的目录:2.获取Documents目录: NSArray *path=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory=[path objectAtIndex:0]; NSLog(@"%@",documentsDirectory);在末尾附加另一个字符串来创建文件名NSString *fname=[documentsDirectory stringByAppendingPath 阅读全文
posted @ 2012-02-09 16:29 phoenix13 阅读(526) 评论(0) 推荐(0) 编辑
 
摘要: 1.获得屏幕尺寸 CGRect screenBounds=[[UIScreen mainScreen] bounds]; int screenwWidth=screenBounds.size.width; int screenHeight=screenBounds.size.height;2.获得时间 NSDate *nowDate = [NSDate date];// 获取本地时间 NSDateFormatter *formatter = [[NSDateFormatter alloc]init]; [formatter setDateFormat:@"y... 阅读全文
posted @ 2012-02-09 11:17 phoenix13 阅读(234) 评论(0) 推荐(0) 编辑
 

2012年2月8日

摘要: -(UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ //此方法每一行创建的时候都要调用一次 static NSString * sectionID=@"sectionID_1";//sectionID 当前只有一个section UITableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:sectionID]; if (cell==ni... 阅读全文
posted @ 2012-02-08 15:39 phoenix13 阅读(699) 评论(0) 推荐(0) 编辑
 

2012年2月7日

摘要: 1.创建一个button,并触发一个alert事件- (void)viewDidLoad{ [super viewDidLoad]; b1button=[UIButton buttonWithType:1]; b1button.frame=CGRectMake(0, 0, 100, 50);//位置 大小 [b1button setTitle:@"button1" forState:UIControlStateNormal];//名称 b1button.backgroundColor=[UIColor brownColor];//背景颜色 [b1bu... 阅读全文
posted @ 2012-02-07 16:26 phoenix13 阅读(1633) 评论(1) 推荐(0) 编辑
 
摘要: http://www.cnblogs.com/andyque/archive/2011/08/08/2123993.html(译)在Objective-c里面使用property教程http://blog.csdn.net/dotphoenix/article/details/4203075Objective C 2.0 简明教程 (5) 属性(Property)http://www.cnblogs.com/ulihj/archive/2011/01/18/1938576.htmlobject-c学习笔记:属性变量(property)http://blog.sina.com.cn/s/blog 阅读全文
posted @ 2012-02-07 10:16 phoenix13 阅读(558) 评论(0) 推荐(0) 编辑
 

2012年2月6日

摘要: http://www.cnblogs.com/dotey/archive/2011/06/09/2075954.html第二个iPhone应用程序:“Say Hello”http://edenhe.me/2011/04/28/uiwindow-uiview%E5%92%8Cuiviewcontroller/UIWindow, UIView和UIViewControllerhttp://www.cnblogs.com/ternastone/archive/2011/11/10/2244460.htmlIOS开发笔记(七)---对iOS多视图开发的补充(针对XCode4.2开发环境,http:// 阅读全文
posted @ 2012-02-06 17:17 phoenix13 阅读(557) 评论(0) 推荐(0) 编辑
 
摘要: 新建一个Empty Application,再上面建一个viewController。1.新建一个Empty Application,只有一个appDelegate类。2.再新建一个group名叫first,在这个group下新建一个UIViewController的子类。3.添加代码在AppDelegate.h中添加代码:#import "firstViewController.h"@property (strong, nonatomic) firstViewController *fvc;在AppDelegate.m中添加代码:@synthesize fvc;在AppD 阅读全文
posted @ 2012-02-06 17:01 phoenix13 阅读(593) 评论(0) 推荐(0) 编辑
 
上一页 1 ··· 9 10 11 12 13 14 15 下一页