xcode4.2

Multiple views in Xcode storyboard view controller, one of them won't appear in storyboard editor

做~自己de王妃 提交于 2019-11-29 17:13:07
问题 I'm having trouble updating a project someone else created in Xcode. This is an app built in storyboard and in one case, there is a scene with a view controller that has multiple views underneath it in the document outline palette of the storyboard editor (shown in included image). The first view is the one that becomes highlighted in the storyboard editor when it is clicked on, and as you change the design or the objects in the view that view is updated. There is a second view (the one

How to differentiate multiple targets with Xcode 4.2

拥有回忆 提交于 2019-11-29 14:07:59
问题 I've developed a lite version of an app. Now I want to create a paid version. So I've duplicated the target, changed its name (so change plist and other stuff with that name) and now I have to differentiate in code. I'm using Xcode 4.2 and I see on the web that I have to create a preprocessor flag. My problem is that this flag in Xcode 4.2 is only in the project's build setting and not in the target's build setting. I will need to be able to do something like this: #ifdef paid ... #else ...

xcodebuild arguments ignored when using archive

橙三吉。 提交于 2019-11-29 13:41:55
My name is Luca and I am currently working on iOS continuous integration to build apps in xcode for distribution (Ad Hoc and App Store) using shell-scripting. So far I achieved good results with IPA files. My problem comes for distribution in App Store. To build a .app from script (passing some arguments) I do: xcodebuild -scheme myScheme -configuration myConfiguration PRODUCT_NAME=myProductName TARGETED_DEVICE_FAMILY=myTargetedDeviceFamily .... etc Since with XCode 4.2, apps submission is done using the XCode Organizer Window I must be able also to archive my executable. Therefore I modify

What is the difference between Copy Bundle Resources and Copy Files for Xcode build phases?

点点圈 提交于 2019-11-29 13:26:45
Could someone explain the difference between the Copy Bundle Resources phase of Xcode and a Copy Files phase? When would I use "Copy Files"? Copy Bundle Resources phase copies files that you want to be available in your bundle (.app). On the other hand Copy Files phase copies files to other (standard) locations accessible from your application (for example to /Library/Fonts) giving you also the option to copy them only when installing. You can also see relevant documentation here Copy Files - Copies files from a project to an external specified location. It is useful, for example, when you are

ios 5 change the background of back button in navigation controller to transparent

帅比萌擦擦* 提交于 2019-11-29 09:39:26
问题 I have customised the navigation controller title bar with a background image, but I am really struggling to change the background color of the back button to transparent so that it matches with the green title bar beneath it. I am fairly new to iOS development. Can any one suggest what could be done? Here is the code for I used to change the title bar of navigation controller, just in case it helps: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view,

Static cells: Content does not appear

回眸只為那壹抹淺笑 提交于 2019-11-29 08:25:34
I simply want to have a static table View with items in it. I used Xcode 4.2 with storyboard for this task. So I created a TableView with a tableViewController (subclass UITableViewController). I defined the content as "Static Cells" and style "Grouped". After that I put some lables and all those objects I want to have in those cells. I created Outlets in the tableViewController: #import <UIKit/UIKit.h> @interface tableviewcontroller : UITableViewController @property (weak, nonatomic) IBOutlet UILabel *label1; @property (weak, nonatomic) IBOutlet UILabel *label2; @property (weak, nonatomic)

Parsing XML data to NSMutableArray iOS - iPhone

喜欢而已 提交于 2019-11-29 07:48:17
This is the XML data: <Categorys> <Category> <categoryId>25</categoryId> <categoryName>My Photos</categoryName> <categoryDescription>Description</categoryDescription> <categoryIconPath>7.jpg</categoryIconPath> <userId>2</userId> <categoryStatus>ON</categoryStatus> <publicPrivate>Private</publicPrivate> </Category> ......more categories <Categorys> Here I want to get the <categoryName> values into my NSMutableArray categList . The code I have used is: - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *

ARC error : -fobjc-arc is not supported with fragile abi [duplicate]

血红的双手。 提交于 2019-11-29 02:56:36
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Objective-C ARC Error: -fobjc-arc is not supported with fragile abi Clang LLVM 1.0 Error error: -fobjc-arc is not supported with fragile abi I'm buildin an OSX app and I get the same error when I compile it with "Profile", to work with Instruments. Any idea how to solve it? 回答1: ARC is only available to 64-bit applications in OS X. Therefore, you must set your application's architecture to "64-bit Intel" in the

How to enable/ disable “Automatic Reference Counting”?

拈花ヽ惹草 提交于 2019-11-29 01:00:07
Using Xcode 4.2, how can one enable/disable "Automatic Reference Counting"? ANSWERED Under Build Settings, flip "yes" and "no" depending whether you want ARC enabled. Globally: Go to "Build Settings", look for "Apple LLVM compiler 3.0 - Language". Set the field "Objective-C Automatic Reference Counting" to "No". For individual files: Go to "Build Phases", select the file, double-click the "Compiler Flags" column and put "-fno-objc-arc" in it. To enable ARC per-file, you can also set your "Compiler Flags" under "Build Phases" to -fobjc-arc . Make sure your compiler is set to Apple LLVM compiler

iPhone with iOS 6 and Xcode 4.2 issue

时间秒杀一切 提交于 2019-11-29 00:28:08
I have upgraded my iPhone to iOS 6, however I am currently on Xcode 4.2 (on Snow Leopard). Now I am getting this error message: The version of iOS on “xxx xxx” does not match any of the versions of iOS supported for development with this installation of the iOS SDK. Please restore the device to a version of the iOS listed below, or update to the latest version of the iOS. Is it possible to restore my iPhone to older version say 5.1 or some how make my Xcode to support/recognize iOS6? I followed the following steps, to resolve my issue by making Xcode to support iOS 6: 1.First download Xcode 4