上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 57 下一页
  2012年3月20日
摘要: (对于在ViewController之间传值)最简单最专业的方法就是所谓的实例共享(shared instance)。基本的做法就是在最初调用的时候创建一个可以实例化这个类的单例的类方法(singleton),然后在接下来的调用中返回这个实例。我们用一个棋盘游戏中常见的Engine类来举例说明:Engine.h[plain]view plaincopy#import@interfaceEngine:NSObject{NSUIntegerboard[100];//c-stylearray}+(Engine*)sharedInstance;-(NSUInteger)getFieldValueAtP 阅读全文
posted @ 2012-03-20 20:03 wtq 阅读(2925) 评论(0) 推荐(0) 编辑
摘要: 利用xcode4.2编译后的应用程序(.app文件)保存的路径是: /用户/用户名/library/Developer/xcode/DerivedData/vsstoo-ewhhefwrnqvev……/build/products/release-iphoneos/vsstoo 阅读全文
posted @ 2012-03-20 09:37 wtq 阅读(435) 评论(0) 推荐(0) 编辑
  2012年3月17日
摘要: 问题:有三个view,他们之间传递一个NSArray *NodeArray IPadLoginViewController----》VedioContainerViewController-----》IpadTreeViewTestController 在VedioContainerViewController的ViewDidLoad 中,若写成如下代码 IpadTreeViewTestController *ipadTvtc = [[IpadTreeViewTestController alloc] init]; ipadTvtc.view.frame = CGRectMa... 阅读全文
posted @ 2012-03-17 14:51 wtq 阅读(352) 评论(0) 推荐(0) 编辑
  2012年3月15日
摘要: 今天是3月15号国际消费者权益日,现在就记录下有关@selector的相关问题。1 增加手势:UITapGestureRecognizer *oneFingerTwoTaps = [[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(oneFingerTwoTaps:)] autorelease]; // Set required taps and number of touches [oneFingerTwoTaps setNumberOfTapsRequired:2]; [oneFingerTwoTaps 阅读全文
posted @ 2012-03-15 21:29 wtq 阅读(5509) 评论(0) 推荐(0) 编辑
摘要: 原文摘自:http://www.cocoachina.com/bbs/read.php?tid-66690.html1.用- (void)scrollViewDidScroll:(UIScrollView *)scrollView 这个是UIScrollViewDelegate方法,UITableViewDelegate继承它。它可以追踪你的UITableView在滑动过程中的变化。2.思路是用UIScrollView的属性contentSize,frame和contentOffset值来判断。3.具体代码是这样的:CGPoint contentOffsetPoint = tableView. 阅读全文
posted @ 2012-03-15 16:02 wtq 阅读(5011) 评论(1) 推荐(0) 编辑
  2012年3月14日
摘要: 今天是3月14号,也就是传说中的白色情人节。早上拿着ipad连接到电脑上,没想到xcode竟然识别不了。刚开始我以为是ipad也需要像iphone一样制作证书,于是我满怀期待的翻开教程开始制作证书。证书制作结束后,也把证书应用到手机和xcode上,结果xcode还是识别不了iPad。接着我就怀疑是不是我新设置的项目有问题,不假思索的制作器iphone证书上来。我把iphone连接到xcode上,xcode就能显示iphone设备了。接着我把iphone手机里头的证书给删掉,发现xcode还是能够连接上iphone。从这里就可以推断出一个结论,那就是xcode是否能连接上ios设备跟证书没... 阅读全文
posted @ 2012-03-14 16:17 wtq 阅读(4469) 评论(0) 推荐(0) 编辑
  2012年3月13日
摘要: 问题:出现Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang++ failed with exit code 1 这个错误的原因详见以下说明。该说明说是:重新定义了一个LoginViewController。所以只要将其中的一个LoginViewController删除掉就行了。ld: duplicate symbol _OBJC_IVAR_$_LoginViewController.loginLoadingView in /Users/tqw/Library/Developer/Xcode 阅读全文
posted @ 2012-03-13 14:13 wtq 阅读(3538) 评论(0) 推荐(0) 编辑
  2012年3月11日
摘要: 当程序中含有多个 view,需要在之间切换的时候,可以使用 UINavigationController,或者是 ModalViewController。UINabigationController 是通过向导条来切换多个 view。而如果 view 的数量比较少,且显示领域为全屏的时候,用 ModalViewController 就比较合适(比如需要用户输入信息的view,结束后自动回复到之前的view)。今天我们就看看 ModalViewController 的创建方法。ModalViewController 并不像 UINavigationController 是一个专门的类,使用 UI 阅读全文
posted @ 2012-03-11 14:30 wtq 阅读(325) 评论(0) 推荐(0) 编辑
  2012年3月9日
摘要: 本文摘自:http://www.cocoachina.com/ask/questions/show/53074/%E5%85%B3%E4%BA%8Eapp%E5%9C%A8ios%E6%A8%A1%E6%8B%9F%E5%99%A8%E4%B8%8A%E8%BF%90%E8%A1%8C%E6%97%B6%EF%BC%8C%E5%AD%98%E6%94%BE%E4%BD%8D%E7%BD%AE%EF%BC%9F如果是xcode3.x的话,一般是在你的代码文件夹里。4.2是在/Users/XXX/Library/Application Support/iPhone Simulator/4.3/Ap 阅读全文
posted @ 2012-03-09 15:51 wtq 阅读(1953) 评论(0) 推荐(0) 编辑
  2012年3月6日
摘要: 地址:http://code.google.com/intl/zh-CN/apis/maps/documentation/geocoding/ 阅读全文
posted @ 2012-03-06 16:33 wtq 阅读(237) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 57 下一页