xcode5

using UIView animateWithDuration: delay: Xcode

帅比萌擦擦* 提交于 2019-12-03 00:45:30
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? First of all, the values animateWithDuration and delay are float values, and should be as 1.0 and 2.0

How to refresh UICollectionViewCell in iOS 7?

蹲街弑〆低调 提交于 2019-12-03 00:02:32
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 stopShaking]; } } In iOS 6 or below, - applyLayoutAttributes: is called after I call the statements

Xcode5: Failed to register \"/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/MobileDevices.bundle

馋奶兔 提交于 2019-12-02 22:45:04
My library has some type converters. I'm registering some OSX and iOS type converters, like so: When I compile for iOS, I'm getting some errors related to not being able to find UIKit. Here's how I compile for iOS: xcodebuild -destination OS=${module.sdk.version},name=iPhone -workspace ${workspace} -scheme '${library.ios.scheme}' The ${} tokens are patched in by my build system. When building I get: __build.library.ios.simulator: [exec] Details: Failed to register "/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/MobileDevices.bundle" with Launch Services, error code: -10811.

Upgraded to iOS 7 beta / Xcode 5 beta and receiving warning “CODE_SIGN_ENTITLEMENTS specified without a valid Developer Signing Identity for iOS”

吃可爱长大的小学妹 提交于 2019-12-02 22:18:46
Just upgraded to iOS 7 beta (and Xcode 5 beta) and am receiving the following warning when I build a preexisting app that I'm moving to iOS 7 Check dependencies: warning: CODE_SIGN_ENTITLEMENTS specified without a valid Developer Signing Identity for iOS. However, when I check the Code Signing Entitlements flag in my Build Settings, I actually don't have a Code Signing Entitlement defined: Any ideas? Is this now required in iOS 7? If so, how would I define a Code Signing Entitlement? The problem is not with the Code Signing Entitlements . The problem is most probably with the Code Signing

What are the advantages of XCTest over SenTestingKit?

非 Y 不嫁゛ 提交于 2019-12-02 22:08:50
I want to do unit testing in iOS. By default test classes are created using XCTest framework classes in Xcode 5. I have used SenTestingKit in earlier versions of iOS. What are the differences between these two frameworks? What are the advantages of XCTest framework. I googled for related documentation but I did not find any. Only thing I found is the interface classes to use inside the kit. Can anyone point me to the related resources. Apple's documentation is notably lacking with regards to testing. It's a shame, because spending five minutes with XCTest made me fall for it. So, here are some

Apple OS X Server (Xcode CI service) can't find provisioning profiles

给你一囗甜甜゛ 提交于 2019-12-02 21:12:28
I configured dedicated Mac mini with OS X Server for Continuous Integration with XCode5, added git repo and created bots. I am trying to integrate bot and get error Specified PROVISIONING_PROFILE (29DAD4E2-6155-4395-AF33-2C872BC32504) not found and no CODE_SIGN_IDENTITY specified. Ignoring PROVISIONING_PROFILE for now. This will become an error in the future. Server was added to Developer Team and I can see it in member center at special page "Servers". I think that server should retreive profiles from Developer Center for build bots, but it doesn't work. How can I fix this? Vitaly Kudrin I

How to disable Xcode 5 automatically upgrade xibs to iOS7 appearance

二次信任 提交于 2019-12-02 20:57:51
If you open an Xcode 4.x project at Xcode 5 and then open a xib at Interface Builder, you will get an alert: NOTE: I only have the issues with the forced iOS7 appearance, auto layout is still turned off for me. And then i accidentally clicked "Alway Upgrade" so Xcode automatically upgrades all my xibs to Xcode 5 and iOS7 prior. But i use Xcode 4.x parallel and it's very annoying to switching back all the xibs when i accidentally open them in Xcode 5. Before opened in XCode 5 interface builder: After opened in XCode 5 interface builder: I searched in Xcode and on Google to get the way to turn

Launch images show black, when using Asset Catalog

[亡魂溺海] 提交于 2019-12-02 20:35:37
In Xcode 5 , I use the asset catalog to manage the app icons and launch images for my app. The app icons work fine on all devices, but the launch images just on a few. I have added launch images for every possible device, and iOS (6.1 and 7.0), that I want to target. I have made sure that all images have the correct sizes , which is confirmed in the attributes inspector (see picture below) where the size of the images match the expected sizes. I have also named all images after the naming conventions , which should not even be necessary with asset catalog (see last picture) . There does not

Load app icon from xcassets

落花浮王杯 提交于 2019-12-02 20:30:39
I'd like to display the app icon inside my app. The icon is in the default assets catalog ( Images.xcassets ). How do you load it? I tried the following and they all return nil : image = [UIImage imageNamed:@"AppIcon"]; image = [UIImage imageNamed:@"icon"]; image = [UIImage imageNamed:@"icon-76"]; image = [UIImage imageNamed:@"icon-60"]; Other images in the assets catalog work as expected. By inspecting the bundle I found that the icon images were renamed as: AppIcon76x76~ipad.png AppIcon76x76@2x~ipad.png AppIcon60x60@2x.png And so on. Thus, using [UIImage imageNamed:@"AppIcon76x76"] or

XCode 5: Is there any way to group/filter/sort what shows up in code-completion?

ε祈祈猫儿з 提交于 2019-12-02 20:09:59
For a very simple object like this: @interface MyObject : NSObject @property(strong) NSObject* thingAboutMyObject; - (void) aThingToDo; - (void) moreToDo; - (void) yetAnotherAction; @end Someone working with MyObject gets code completion which includes all of the methods and properties from NSObject. It makes sense why this happens, but for a majority of cases, the methods I care most about are in the class itself. I'd like to know if there is a way, when creating a class, to hint to the xcode IDE that you want to 'highlight' the actual interface when working with objects of the class. I've