xcode5

Iphone app crashes before didFinishLaunchingWithOptions

徘徊边缘 提交于 2019-12-08 02:32:36
问题 My iPhone application was working properly and suddenly it crashes whenever i run it on the device or simulator and it doesn't report me with any useful info at the log it just logs the following useless info.: 2014-02-05 17:09:34.069 TeacherAssistant[711:60b] ( 0 CoreFoundation 0x2ed4ce9b <redacted> + 154 1 libobjc.A.dylib 0x390a96c7 objc_exception_throw + 38 2 UIKit 0x3197beed <redacted> + 0 3 UIKit 0x3174a10d <redacted> + 44 4 UIKit 0x3153ba53 <redacted> + 482 5 UIKit 0x314d6a07 <redacted>

xcode 5 syntax highlight not working for unit test file

我只是一个虾纸丫 提交于 2019-12-08 02:21:26
问题 I have setup a unit test for my project. Initially i got stuck with errors during the compilation of the test file, finally i solved it and my tests now are working. The problem now is that the syntax highlight is not working for the test file, only for that. I tried following this answer to solve this issue but no luck. Removing the derived data of the project worked one time but then i closed xcode and when i reopened it there was no syntax highlight again. Also i have reinstalled xcode 5

How to migrate AFHTTPClient, Afnetworking 1.0 to 2.0

北城以北 提交于 2019-12-08 00:57:47
问题 My problem is that I have a old code and I dont know how to change it. I had 1 class called API (AFHTTPClient) I have problems with 2 methods because I dont know how to put them in 2.0: This: -(void)commandWithParams:(NSMutableDictionary*)params onCompletion:(JSONResponseBlock)completionBlock { NSMutableURLRequest *apiRequest = [self multipartFormRequestWithMethod:@"POST" path:kAPIPath parameters:params constructingBodyWithBlock: ^(id formData) { //TODO: attach file if needed }];

Xcode 5 Tests Not Running

无人久伴 提交于 2019-12-07 23:56:11
问题 I get the following message from Xcode when I try to run my tests: 2013-11-13 09:02:57.849 MyProject[378:303] Error loading /Users/tatami/Library/Developer/Xcode/DerivedData/MyProject-gcralijdlibafgeyfwfeiynnothy/Build/Products/Debug/MyProjectTests.xctest/Contents/MacOS/MyProjectTests: dlopen(/Users/tatami/Library/Developer/Xcode/DerivedData/MyProject-gcralijdlibafgeyfwfeiynnothy/Build/Products/Debug/MyProjectTests.xctest/Contents/MacOS/MyProjectTests, 262): no suitable image found. Did find:

flip greeting card like just wink app

拈花ヽ惹草 提交于 2019-12-07 22:55:27
问题 Can anyone help me in making animation like we have in Just Wink App.I want to have the same preview animation as in Just Wink. here is the animation which i want to have I have tried a lot for hours but didn't find anything useful.I tried the similar animation using CATransform3D but not able to get the exact one with this also .Here is the code that i have tried intialTransform = CATransform3DIdentity; intialTransform.m34 = 1.0 / -500; intialTransform = CATransform3DRotate(intialTransform,

Building with iOS7 produces iOS6 looking widgets

倖福魔咒の 提交于 2019-12-07 22:51:38
问题 After moving to XCode 5 and the iOS7 base SDK, some of the UI widgets in my app still look like iOS6-style (gradients, frames) on iOS7 devices. This doesn't happen on the equivalent emulator for iOS7. This also doesn't happen for all widgets, UIDocumentInteractionController's popup looks like iOS7 on device, but UIPopoverController doesn't. The keyboard for renaming a file also shows this discrepancy between emulator and device. How does iOS determine the visual style of UI elements? Is it

Can't run app in simulator :: XCODE 5

社会主义新天地 提交于 2019-12-07 19:13:02
问题 May because its DP and they will fix it, but for time being anyone have an idea how to solve this issue? For me only reboot is solving the issue. I could have done this but its becoming very frequent. It works fine when running in device. Any help appreciated.Thanks. 回答1: As Michael D suggested, I got an instant answer from Dev forum. Here is the answer: Delete the app from simulator or reset the simulator. Later I got Similar issue in iPhone too. Deleting the app from iPhone will solve that

Is it possible to open running background app on in Objective c

假装没事ソ 提交于 2019-12-07 18:57:04
问题 open my app from background running on a specific timing.. want to do somthing like this - (void)applicationDidEnterBackground:(UIApplication *)application { timer = [NSTimer scheduledTimerWithTimeInterval:10 target:self selector:@selector(timerFired:) userInfo:nil repeats:NO]; } - (void)timerFired:(NSTimer*)timer { NSLog( @"yes it is running..."); PickUpCallViewController *call=[[PickUpCallViewController alloc]initWithNibName:@"PickUpCallViewController" bundle:nil]; navi=[

Creating IPA file in Xcode 5 for project containing static library sub-projects

耗尽温柔 提交于 2019-12-07 17:58:26
问题 I have a project which contains a sub-project to build a 3rd party static library the app depends on. In Xcode 5, when I come to export an .ipa file after doing an Archive build and clicking the Distribute button in the Organizer window, the option "Save for Enterprise or Ad Hoc Deployment" is missing from the list of options (I only see "Submit to the iOS App Store" or "Export as Xcode Archive"). Does anyone know i) why this is and ii) how to rectify the problem? For a simple test project

AVPlayer Play, Pause and Buffering issue

我怕爱的太早我们不能终老 提交于 2019-12-07 15:57:19
问题 My app plays a streaming video, but when it buffers, the player goes to the pause mode and I have to set it to play mode again manually, I have the following code in my AVPlayer class in order to handle this situation, but it does not work. In the ViewDidLoad method [playerItem addObserver:self forKeyPath:@"playbackBufferEmpty" options:NSKeyValueObservingOptionNew context:nil]; [playerItem addObserver:self forKeyPath:@"playbackLikelyToKeepUp" options:NSKeyValueObservingOptionNew context:nil];