xcode5

Assertion Failure in UICollectionViewData validateLayoutInRect on ios7

感情迁移 提交于 2019-12-03 10:47:55
Assertion Failure in UICollectionViewData validateLayoutInRect on iOS7. I am trying to delete all UICollectionView items, one by one, using a for loop; I posted my code below. I delete the UICollectionView items using deleteItemsAtIndexPaths . It's working perfectly on iOS6 , but crashes in iOS7 with this exception: Assertion Failure in UICollectionViewData validateLayoutInRect I delete the object from collectionArray then self.collectionView , one by one, using indexPath . When I delete the 4th object its raises Assertion failure on iOS7. Here I am using performBatchUpdates . Please help me

Integration error with Cocoapods and XCode5

与世无争的帅哥 提交于 2019-12-03 10:43:00
问题 When building my project in the new XCode5, I receive the following warning: Pods-App was rejected as an implicit dependency for 'libPods-App.a' because its architectures 'i386' didn't contain all required architectures 'x86_64' . 回答1: To fix that, select the Pods project in the left menu, then under the targets section select the Pods-#YourAppName# target and in the build settings click on the Architectures and press delete so it goes to the default option (Standard architectures (armv7,

Change Version number and build in Xcode 5

纵然是瞬间 提交于 2019-12-03 10:42:41
I have upgraded my Xcode to Xcode 5. From where can I change the version and build number which are now not visible in Target Summary? Select your project on the left. Then under target, select the target. Note it's in the General tab. rckoenes In the screenshot you posted your target is a library, which do not have the build/version number. Select your target and then go to the General tab. Then Identity you can change the Version ad the build Or open the Info tab and then Custom iOS Target Properties , here your can change the build and version number. In left pane select project name - >

Selector name found in current argument registers: isEqual:

陌路散爱 提交于 2019-12-03 10:34:35
问题 I am looking for some assistance with squashing a bug in an OSX app that i just can't work out. I am getting a logged error of: Selector name found in current argument registers: isEqual: But i can't for the life of me work out where it's coming from as the log is very unhelpful. Also i can't reproduce this on my own test systems, but it seems to be happening quite a lot on some of the beta testers machines. This only seems to happen on 10.9. Here is the log file for the crash: Incident

Use of xcassets

我是研究僧i 提交于 2019-12-03 10:29:26
问题 Is .xcassets resource only for app icons and launch images or for our own image assets also? I do know that we can add our images to the .xcassets file, but is it good practice to do so? 回答1: Use of xcassets is the new standard as of Xcode 5 and iOS 7. Import images by clicking on the blue folder called "Images.xcassets" then click on the small "+" plus sign at the bottom of the window that appears. Now choose "Import" to put images in there. This is also the new location of the icon and

General tab missing

六月ゝ 毕业季﹏ 提交于 2019-12-03 10:24:57
问题 I have just switched over to using Xcode 5. I have gone to change the name of my application with some other settings which I need to change, However when I have gone to do this I noticed my "General" tab is missing. Does any one know why this may have happened. 回答1: See up in the left hand corner of your screenshot the blue icon? You have your project file selected and are viewing the project's global settings, which don't have a "General" tab. Click either the triangle in the box up there

Xcode 5: Multiple test targets in one scheme: “Simulator already in use”

三世轮回 提交于 2019-12-03 10:18:40
In Xcode 5, I have a workspace with multiple projects and a scheme that should run all the test targets of the various projects. When I kick off the tests about 3 test project targets pass. So far, so good. But at the fourth test target I get an error message from Xcode telling me that the simulator can't be launched because it is already in use. Is there any way to kill the simulator between each test target(!) in a single(!) scheme? Or are there other solutions? Edit: I have opened a rdar for this: http://openradar.appspot.com/15153136 Thanks! I have come into this error whenever i try to

using UIView animateWithDuration: delay: Xcode

☆樱花仙子☆ 提交于 2019-12-03 10:17:15
问题 I am trying to use [UIView animateWithDuration:1 delay:2 options:UIViewAnimationOptionCurveEaseIn animations:^{ } completion:^ (BOOL completed) {} ]; however no matter what number I put for the delay, there is no delay. I am trying to have a series of buttons fade in one after the other when another button is touched. So I use a series of UIView animate with various lengths of delay but they all show up at the same time no matter what time delay I enter. Does anyone have some suggestions? 回答1

How to refresh UICollectionViewCell in iOS 7?

一个人想着一个人 提交于 2019-12-03 09:40:59
问题 I am trying to develop my app in Xcode 5 and debug it under iOS 7 environment. I have a customized UICollectionViewLayoutAttributes. I plan to do something after long pressing on UICollectionViewCell, so I override the method in UICollectionViewCell.m - (void)applyLayoutAttributes:(MyUICollectionViewLayoutAttributes *)layoutAttributes { [super applyLayoutAttributes:layoutAttributes]; if ([(MyUICollectionViewLayoutAttributes *)layoutAttributes isActived]) { [self startShaking]; } else { [self

Failed to install “iOS 6.1 Simulator” XCode 5

帅比萌擦擦* 提交于 2019-12-03 09:19:16
I want to run my app on both simulators ios6 and ios7. I'm trying to install ios 6 simulator but I am getting this error: Failed to install "iOS 6.1 Simulator" An unknown error occured. Please try again later. I restarted XCode but not working stil.. Try to reset iOS 6.1 simulator from menu "iOS Simulator -> Reset Content and Settings...", then run your app in XCode. This helped me. Was having the same problem , already did a system restart and reset the simulator but didn't work but deleting the app manually inside the simulator worked for me, Run it in iOS 7 simulator (so you can run it),