xcode5

ARC semantic issue “multiple methods named 'setRotation' ” while archiving only

邮差的信 提交于 2019-11-30 17:42:10
问题 My project in cocos2dv3 is throwing ARC Sematic Issue Multiple methods named 'setRotation:' found with mismatched result, parameter type or attributes while archiving(release mode). It runs fine while deploying to simulator/device (debug mode). In release mode compiler gets confused between the implementation of rotation in UIRotationGestureRecognizer and CCNode . When I got the error in CCBAnimationManager.m , I typecasted the object calling the selector setRotation to ( CCNode *) but then

UIActionSheet crash in iOS8beta

好久不见. 提交于 2019-11-30 17:40:39
问题 I have code which simply display UIActionSheet on button click. but it will crash when I build it using XCode5.1 + iOS8beta in iPad. below is a code I used to display UIActionSheet. UIActionSheet *tmpActionSheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles: @"Ok", nil]; [tmpActionSheet showInView:self.view]; Note: - It perfectly work with XCode6beta + iOS8beta (iPhone/iPad both) - It perfectly work with

Can't Submit App to App Store: “Sending API Usage to iTunes Connect” either times out or loses connection

被刻印的时光 ゝ 提交于 2019-11-30 17:23:28
I request your help with this as I have been fighting with this since last night. I have googled for hours and I can't seem to find a solution to this so I am starting to fall for desperation. Basically, I submitted an app last week. It got rejected because of a small mistake of my part. I want to resubmit it now, but the app won't upload. I need to note I have reconfigured my network since then but I'm sure all ports are open and that nothing should be getting on the way of my app being submitted. Most of the fixes I have attempted to do come from other SO questions. Since nothing works, I am

Provisioning Profiles in XCode 5

断了今生、忘了曾经 提交于 2019-11-30 16:57:17
问题 I started using XCode 5 today and found when trying to archive a project for ad-hoc distribution that the provisioning profiles I was presented with did not include one I had recently created, but did include one that I had deleted. I checked the list of profiles in my Organizer for that device, and that list was OK and included the recent one that I had downloaded. So my question is, what's going on here. Where's my profiles? 回答1: I found the answer by following a clue here on this site on a

In App settings tableview from Settings bundle

微笑、不失礼 提交于 2019-11-30 16:45:38
I want to create a TableView which is automatically generated from the Settings.bundle . There used to be a framework InAppSettings but this isn't working with iOS 7 and up . Is there any other code/tutorial for this? I have been searching around and couldn't find a boilerplate solution so created my own code for doing this. It supports the setting types Title , Group , Text Field , Multi Value and Toggle Switch . It does NOT SUPPORT Slider . This solution does support portrait AND landscape mode and can also handle changing over device orientations. I have published the code and readme on my

CGContextShowTextAtPoint deprecated - what shall I use now?

て烟熏妆下的殇ゞ 提交于 2019-11-30 16:36:54
问题 The following will be considered as deprecated in iOS 7: CGContextSelectFont, CGContextShowTextAtPoint. What should I use instead? 回答1: You can use [yourString drawAtPoint:aPoint withAttributes:dictOfAttributes]; Docs for that here. Or you could just add a UILabel to your view hierarchy. 回答2: //begin graphic context UIGraphicsBeginImageContext(imageSize); //get the context for coreGraphics CGContextRef ctx = UIGraphicsGetCurrentContext(); CGContextSetTextDrawingMode(ctx, kCGTextFill); [

Converting an iPhone NIB to iPad NIB in Xcode 5

给你一囗甜甜゛ 提交于 2019-11-30 16:21:58
问题 I'm working on a universal app. Well there's this: Converting iPhone xib to iPad xib? and also this: Xcode 4 .xib Create iPad Version. Am I the only one that still doesn't manage to convert my nib to iPad? I refresh Xcode and under "size" still only see Retina 3.5 and Retina 4. I even used two of the SO questions scripts attached as answers and still remain with the same iPhone nib... Please help! 回答1: I was just having this same problem! I use that answer all the time regarding editing the

In App settings tableview from Settings bundle

試著忘記壹切 提交于 2019-11-30 16:20:31
问题 I want to create a TableView which is automatically generated from the Settings.bundle . There used to be a framework InAppSettings but this isn't working with iOS 7 and up . Is there any other code/tutorial for this? 回答1: I have been searching around and couldn't find a boilerplate solution so created my own code for doing this. It supports the setting types Title , Group , Text Field , Multi Value and Toggle Switch . It does NOT SUPPORT Slider . This solution does support portrait AND

using assembly code inside Objective c program (Xcode)

只愿长相守 提交于 2019-11-30 15:45:05
Is there a way to use assembly code inside Objective C program. I am developing an application for OSX and wanted to use assembly code alongside the Objective C code. I searched the internet and found this But I am not able to implement any of these methods successfully. Any help will be greatly appreciated. Yes, of course. You can use GCC-style inline assembly in Objective-C just like you would in C. You can also define functions in assembly source files and call them from Objective-C. Here's a trivial example of inline assembly: int foo(int x, int y) { __asm("add %1, %0" : "+r" (x) : "r" (y)

Base.lproj/MainMenu.xib is not available when compiling for targets before Mac OS X 10.8

我们两清 提交于 2019-11-30 15:17:19
问题 I'm very new to Cocoa development. I've just created Cocoa project in Xcode 5 . I changed Deployment Target from 10.8 to 10.6. Now I get this warning: path-to-my-project/Base.lproj/MainMenu.xib is not available when compiling for targets before Mac OS X 10.8 Is it normal behavior? What should I do? 回答1: Your project is using base internationalization, which makes translating your app to other spoken languages easier. Base internationalization is supported on Mac OS X 10.8 and later, which is