草庐IT

instance-specific

全部标签

ios - SpriteKit : remove specific node instead of all nodes

我创建了一个应用程序,其中有两种不同大小的从天而降的“石头”节点源源不断。玩家控制第三个石头对象,并根据收集到的两种落石类型中的哪一种来获得积分。最后,梁对象用作移动地面。到目前为止,我已经在我的应用程序中添加了碰撞检测,它可以检测不同石头和光束之间的碰撞。这是我的碰撞代码:staticconstuint32_tstoneCategory=1;staticconstuint32_tbeamCategory=2;staticconstuint32_tstoneCategory2=4;和-(void)didBeginContact:(SKPhysicsContact*)contact{SK

ios - -[_UIFlowLayoutSection 中心] : unrecognized selector sent to instance

我该如何修复这个崩溃:-[_UIFlowLayoutSectioncenter]:unrecognizedselectorsenttoinstance.我在做:UICollectionViewFlowLayout*collectionLayout=[[UICollectionViewFlowLayoutalloc]init];collectionLayout.minimumInteritemSpacing=0.0;collectionLayout.minimumLineSpacing=0.0;collectionLayout.sectionInset=UIEdgeInsetsMake(

iphone - "message sent to deallocated instance"- 无法找到保留方法。

我有一个带有分页控件的ScrollView。它根据数组加载多个页面,每个页面都有其表格View。for(idnameincategories){NSLog(@"LoadingPage.%i",i);NSLog(@"categoriescount:%i",[categoriescount]);TasksPageViewController*tasks=[[TasksPageViewControlleralloc]init];tasks=[self.storyboardinstantiateViewControllerWithIdentifier:@"TasksPageViewContro

ios - dequeueReusableCellWithIdentifier : returns nil even after creating cell instance

我正在尝试将UITableView与.xib文件一起使用。我过去用Storyboard做过,你在动态原型(prototype)中声明一个重用ID。我在-(UITableViewCell*)tableView:(UITableView*)tableViewcellForRowAtIndexPath:(NSIndexPath*)indexPath函数中有这段代码应该可以工作:NSString*ReuseId=@"DefaultCell";UITableViewCell*cell=[tableViewdequeueReusableCellWithIdentifier:ReuseId];if(

iphone - 圆弧错误 : receiver type for instance message does not declare a method with selector

我遇到了这个我无法弄清楚的错误。error:AutomaticReferenceCountingIssue:Receivertype'pageAppViewController'forinstancemessagedoesnotdeclareamethodwithselector'createContentPages'我在下面发布了我的代码。我的类pageAppViewController中确实有一个名为createContentPages的方法。这是什么意思,是什么原因造成的?//contentViewController.m#import"contentViewController

ios - -[__NSCFConstantString 大小] : unrecognized selector sent to instance . ..?

redSegmentedControl.mredSegmentedControl.h现在,我在另一个Controller中编写代码//self.segmentedControl=[[redSegmentedControlalloc]initWithFrame:CGRectMake(0,140,320,50)];self.segmentedControl=[[redSegmentedControlalloc]initWithSectionImages:@[@"list.png",@"list.png",@"list.png"]sectionSelectedImages:@[@"list.

ios - -[UITableViewController setManagedObjectContext :]: unrecognized selector sent to instance 0x7490da0'

我知道错误发生在这一行,因为应用程序在注释掉这一行的情况下工作正常:controller.managedObjectContext=self.managedObjectContext;错误是:Terminatingappduetouncaughtexception'NSInvalidArgumentException',reason:'-[UITableViewControllersetManagedObjectContext:]:unrecognizedselectorsenttoinstance0x7490da0'fibroMappAppDelegate.h////fibroMap

ios - [__NSCFString 字符值] : unrecognized selector sent to instance?

我的应用程序使用FMDB和Mantle,在iPhone5模拟器之后一切正常,但在iPhone5s之前崩溃,看起来BoolVariable是原因。但我不明白为什么在iPhone5s、6和6plus上一切正常。@property(nonatomic,assign)BOOLisMyFan;@property(nonatomic,assign)BOOLisMyFollow;@property(nonatomic,assign)NSIntegercityID;@property(nonatomic,assign)NSIntegerprovinceID;@property(nonatomic,as

java - 无法从 START_OBJECT token 中读取 JSON : Can not deserialize instance of hello. Country[]

我有提供所有国家/地区的休息网址-http://api.geonames.org/countryInfoJSON?username=volodiaL.我使用Spring3的RestTemplate将返回的json解析为java对象:RestTemplaterestTemplate=newRestTemplate();Country[]countries=restTemplate.getForObject("http://api.geonames.org/countryInfoJSON?username=volodiaL",Country[].class);当我运行这段代码时,我得到一个

java - 无法从 START_OBJECT token 中读取 JSON : Can not deserialize instance of hello. Country[]

我有提供所有国家/地区的休息网址-http://api.geonames.org/countryInfoJSON?username=volodiaL.我使用Spring3的RestTemplate将返回的json解析为java对象:RestTemplaterestTemplate=newRestTemplate();Country[]countries=restTemplate.getForObject("http://api.geonames.org/countryInfoJSON?username=volodiaL",Country[].class);当我运行这段代码时,我得到一个