xcode
共 4 篇文章
object-c语法及相关基础知识
id 是一个指针类型,可以指向任何一个对象。 Bool 的值 YES表示 1,NO表示 0. IBOutLet 是表示 对Interface buildder 做一个提示 能够让interface builder 读取到。 IBAction 和 void 意义一样,但是 IBAction 和 IBoutLet一样 同样对interface builder 的一个提示。 nil 和 null 意义一样。 #import 和 #include 都能用来导入 其他文件,但是有一点区别,#import 会去除 重复。不会重复 && 文件的 读取 与 写入 常用的方法 -(BOOL)writeToFi…
2011-03-26 18:50 · xcode · C · C++ · C#
NSDate,NSString转化
NSDate to NSString NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; NSString *strDate = [dateFormatter stringFromDate:[NSDate date]]; NSLog(@"%@", strDate); [dateFormatter release]; NSString to NSDate NSDateFormatter *dateFormatt…
2011-03-22 15:59 · xcode
xcode工具使用相关
//添加FrameWork project -->> Edit Active Target "TestTrun" 在linked libraries中添加,完成即可。
2011-03-18 16:55 · xcode · Xcode
view跳转
几种常用的办法: 1.在一个viewcontoller中同时初始化3个view,一层盖住一层,当需要显示那一层的时候,用 [self bringSubviewToFront:view1];//将view1放到第一层 这样就会显示view1,同理在view2,view3上都可以,想显示那一层,就把那一层提到最前面来 -(IBAction)goView1:(id)sender { [self.view bringSubviewToFront:view1]; //将view1盖在其他的view上面 [self.view addSubview:view1]; //在当前的view上添加一个view也…
2011-03-18 10:51 · xcode