uiPickerView 滚动盘
摘要:http://blog.sina.com.cn/s/blog_661314940100ogem.htmlUIPickerView使用DEMO
阅读全文
ios 图片操作
摘要: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.
阅读全文
使用UIImagePickerController从iPhone照片库或照相机获取图像
摘要:Posted by bagusflyer0 comments本文讲述使用3.0的方法怎样从iPhone的照片库或照相机获取图像。我们将创建一个应用程序从图片库或照相机获取图像并显示与屏幕之上。下面是截图:1. 创建一个新的 View Based 程序我将其命名为 photoApp2. 创建IBOutlet 和 IBAction打开photoAppViewController.h加入下面代码:#import @interface PhotoAppViewController : UIViewController < UIImagePickerControllerDelegate, UINa
阅读全文
ios 文件操作
摘要:1.每个ios程序都有一个这样的目录:2.获取Documents目录: NSArray *path=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory=[path objectAtIndex:0]; NSLog(@"%@",documentsDirectory);在末尾附加另一个字符串来创建文件名NSString *fname=[documentsDirectory stringByAppendingPath
阅读全文
ios 学习小笔记
摘要: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...
阅读全文
UITableView 表视图
摘要:-(UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ //此方法每一行创建的时候都要调用一次 static NSString * sectionID=@"sectionID_1";//sectionID 当前只有一个section UITableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:sectionID]; if (cell==ni...
阅读全文
ios控件学习 代码实现
摘要: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...
阅读全文
object c 2.0 @property属性
摘要: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
阅读全文
ios多窗体项目
摘要: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://
阅读全文
从Empty Application新建项目
摘要:新建一个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
阅读全文
java 经验
摘要:1.获取时间long begin=System.currentTimeMillis();//单位毫秒long end=System.nanoTime();//单位纳秒Date d = new Date();long longtime = d.getTime();System.out.println(longtime);String time = d.toLocaleString();System.out.println(time);//标准格式时间2.String和int互转(1)int to stringint ->Stringint i= 10;String s = "&q
阅读全文
把java变成exe
摘要:http://blog.csdn.net/zhthaitao222/article/details/4816329exe4j: 让你的class变成exe可执行文件
阅读全文
ios控件学习 IB实现
摘要:0.IBOutlet就是控件IBAction相当于voidhttp://www.2cto.com/kf/201111/110593.html IOS开发笔记 (4) ---第一个IOS界面程序兼谈IB在XCode4.2中的应用1.alert控件:点击button弹出alert。UIAlertView * alert1=[[UIAlertView alloc] initWithTitle:@"myView" message:@"hahah" delegate:self cancelButtonTitle:@"确定"otherButton
阅读全文
object c 基础语法
摘要:http://blog.csdn.net/lutaotony/article/details/6863986 Object-c学习笔记1.NSLog:控制台输出,用法和 printf 基本一样。‘NS’ 前缀表示这个函数来自于NEXTSTEP的Cocoa框架。 NSLog (“base 8: %o\n”, num); 2.数组初始化:int a[] = { [9] = x + 1, [2] = 3 };//10 个元素的数组,给a[9]和a[2]赋值//创建一个不可变的数组 NSArray *array= [NSArray arrayWithObjects:@"雨松", @
阅读全文
安装东皇mac 问题集
摘要:44jason58518发表于2011-7-2716:41请问LZ,这个安装后,可以升级10.6.7或10.6.8么?可以升级~~~51gouda发表于2011-7-2717:41请问楼主,这个版本,如果CPU不支持VT能用虚拟机玩吗,谢谢不可以~必须CPU支持VT65高速链接帮你分流一下,到8月7号~在下面的帖子里http://bbs.pcbeta.com/viewthread-899460-1-1.html74如何硬盘安装啊别人都是dmg格式的点评slhyxblISO也可以用硬盘安装助手写入81wchb发表于2011-7-2719:45楼主你的这个我刚下完,用7z解压后的iso文件里只有一
阅读全文