真机测试 CLLocationManager 定位不准确
– (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { location = [newLo……
为什么在这里会出现“EXC_BAD_ACCESS”. 上面并没有release ArrLat 啊。。求解
NSArray *ArrLat=[[NSArray alloc] initWithObjects:[dic objectForKey:@"lat"],nil] ; NSArray *ArrLng=[[NSArray alloc] initWithObjects:[dic objectForKe……
cocos2d如何删除本层
有一个基于CCLayerColor的层,层里有个菜单、当点击菜单上某一菜单项时,就将该层删除。 请问用什么函数能本层删除啊? 囧!知道怎么做了!谁来接分????????? 我来吧!谢谢 10分 cocos2d中最重要的就是层的概念。 层也是一个节点,所以你直接removeChild就行了。 10分 ……
请教如何将unsigned short数组转换成NSString??
急求,麻烦哪位高手说下。。 50分 - (id)initWithCharactersNoCopy:(unichar *)characters length:(NSUInteger)length freeWhenDone:(BOOL)freeBuffer; /* "NoCopy" is a hint */ - (id)initWith……
横竖屏转换以及一些小问题
我知道一般系统会自己调用shouldAutorotateToInterfaceOrientation这个函数,我已经设置为return YES;了,可是没起作用,并且已经跟踪到程序运行时有进入这个函数,,,不知道为什么? 然后查到了这个函数willAnimationRotationToInterfaceOrientation,说是在模拟器rot……
iphone如何用代码写导航栏按钮的触发控制
我知道建一个普通按钮可以这样写 UIButton *btn1 = [UIButton buttonWithType:102]; btn1.frame = CGRectMake(160.0, 250.0, 50.0, 20.0); [btn1 setTitle:@”查看” forState:UIControlStateNo……
iOS用的什么样的绘图方式,效率特别高?
iOS用的什么样的绘图方式,效率特别高? 20分 opengl quartz2d效率最高 直接用drawRect:(CGRect)rect方法绘图效率很低吗?? ……