我最近在尝试pod update在项目中使用该命令后开始遇到此问题.成功更新pod后,xcode现在给出了以下错误
"工作副本中缺少podfile.lock"
现在我已经尝试清理构建,删除派生数据,更新cocoapods但这似乎没有解决问题.当我查看提交窗口时,该文件似乎不存在于本地版本中.
有谁知道这种方式排序?
我一直在努力解决这个问题,因为某些原因我的SKScenes没有正确解除分配,这导致内存增长有限,因为每次我退出并进入场景时内存会跳起来.这意味着在玩了10轮比赛之后App崩溃了.据我所知,经过多次检查后,我没有任何保留周期或强烈引用场景本身,虽然我知道纹理被缓存并保存在内存中,一旦预加载,内存不应该每次都上升.
这就是我在viewcontroller中设置skview和第一个场景的方法:
-(void)loadStartScreen{
SKView *theView = (SKView *) self.view;
theView.showsFPS = YES;
theView.showsNodeCount = YES;
//Sprite Kit applies additional optimizations to improve rendering performance
theView.ignoresSiblingOrder = YES;
// Create and configure the scene.
MainMenuScene *theScene = [MainMenuScene sceneWithSize:theView.bounds.size];
theScene.scaleMode = SKSceneScaleModeAspectFill;
theScene.backgroundColor = [UIColor grayColor];
// Present the scene
[theView presentScene:theScene];
Run Code Online (Sandbox Code Playgroud)
这是我的MainMenuScene中的代码,用于创建并移动到下一个场景:
SKScene *theScene;
SKTransition *theTransition;
switch (theTag.intValue) {
case 0: // start game
// stop music
[[appDelegate musicPlayer]stop];
theScene = [[GameLevelScene alloc] initWithSize:self.view.bounds.size];
// transition type
theTransition = [SKTransition …Run Code Online (Sandbox Code Playgroud) 我最近在我的故事板中添加了一个UICollectionView,它目前被另一个视图推入视图,这似乎工作正常但是,使用故事板编辑器我设置视图包含35个单元格,在编辑器中看起来很好,但是当我运行应用程序细胞是不可见的.一些单元格内部有UIButton,这些单元格也不呈现.
要仔细检查视图是否渲染我在编辑器中更改了背景颜色并再次运行,颜色正确更新.我是否正确地假设设置应该自动呈现单元格而不必在编辑器中设置任何委托代码?
任何帮助,将不胜感激.
谢谢
编辑 - -
好吧,我已经在我的第二个视图控制器中实现了相应的委托方法,然后推送segue以显示集合视图控制器,我还添加到我的第二个视图控制器头文件并将以下代码添加到.M文件中:
// number of sections for the view
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView{
return 1;
}
// numbers of items in section
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
return 1;
}
// cell to return (uses the custom identifier of the cell in the storyboard)
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"quickNoteCell" forIndexPath:indexPath];
return cell;
}
Run Code Online (Sandbox Code Playgroud)
我还确保故事板上单元格中的标识符使用quickNoteCell,并将其默认颜色更改为蓝色,但是我仍然没有看到该单元格的任何想法?
我一直在阅读一些关于订购NSMutable数组的帖子,但是在使用它时遇到了麻烦,本质上我在tableview中有很多条目,可以添加无限量,但是我需要通过包含NSMutable数组来排序它们数值,这将远远超过10.我真的很感激任何人可以给我的帮助,我一直在使用比较参数,但我似乎无法让它扭转顺序,其次我读了上面的数字10会以奇怪的方式开始排序.我很快就会发布代码,但是我要考虑的任何事情都会很棒.
谢谢
我最近在移动到IOS 7后在我的应用程序中更新了Sharekit 2.0,我使用了sharekit wiki上指定的update git命令.但是现在当我运行应用程序时,它无法使用以下错误进行构建:
Undefined symbols for architecture i386:
"_FBErrorParsedJSONResponseKey", referenced from:
___27-[SHKFacebook doNativeShow]_block_invoke in libShareKit.a(SHKFacebook.o)
-[SHKFacebook FBRequestHandlerCallback:result:error:] in libShareKit.a(SHKFacebook.o)
"_FacebookSDKDomain", referenced from:
___27-[SHKFacebook doNativeShow]_block_invoke in libShareKit.a(SHKFacebook.o)
"_OBJC_CLASS_$_DBRequest", referenced from:
objc-class-ref in libShareKit.a(SHKDropbox.o)
"_OBJC_CLASS_$_DBRestClient", referenced from:
objc-class-ref in libShareKit.a(SHKDropbox.o)
"_OBJC_CLASS_$_DBSession", referenced from:
objc-class-ref in libShareKit.a(SHKDropbox.o)
"_OBJC_CLASS_$_FBDialogs", referenced from:
objc-class-ref in libShareKit.a(SHKFacebook.o)
"_OBJC_CLASS_$_FBRequest", referenced from:
objc-class-ref in libShareKit.a(BufferSheetViewController.o)
"_OBJC_CLASS_$_FBRequestConnection", referenced from:
objc-class-ref in libShareKit.a(SHKFacebook.o)
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in libShareKit.a(BufferSheetViewController.o)
objc-class-ref in libShareKit.a(SHKFacebook.o)
"_OBJC_CLASS_$_FBSettings", referenced from:
objc-class-ref in libShareKit.a(SHKFacebook.o)
"_OBJC_CLASS_$_GPPShare", …Run Code Online (Sandbox Code Playgroud)