xcode4.2

embed navigation controller

空扰寡人 提交于 2019-12-18 13:54:05
问题 I've just updated my Xcode from 4.2 to 4.3.3 and i keep coming across a problem is it possible to add a navigation controller in a single view application because when i try to embed one into the controller nothing happens. I would like to have two view controllers connected by a button to the second controller and a navigation bar back to the first view controller. I can't think of any other way to connect the view controllers please help me any-ideas. 回答1: If you don't want to add a

How to add Entitlement.plist in xCode 4.2

99封情书 提交于 2019-12-18 12:55:11
问题 I am using the Xcode 4.2. I did not able to see any method to add Entitlements.plist in this version. So how can i do add that file in my project since i need to install my app on iPhone. 回答1: Select the target in your project and scroll down. You'll see the option to add a custom entitlement. For creating a new entitlement, just create a new plist file from new file menu item. Change it's type to iPhone entitlements as shown below. 来源: https://stackoverflow.com/questions/8547471/how-to-add

Mapping a JSON response to an object using RestKit and Objective-C

十年热恋 提交于 2019-12-18 12:43:20
问题 I am relatively new to Objective-C and am attempting to use RestKit to receive a JSON response from a web service. I have successfully received the data back to my application, which looks like this viewing the response: {id:"1","Translation":"Test"} I would like to map this translation to my "Translation" object in my application, but have tried a few different ways but am not sure how to achieve this. So my questions are: How can I map this response to my Translation object Am I doing this

Facebook iOS SDK 3.1 with XCode 4.2 linker errors

佐手、 提交于 2019-12-18 12:12:40
问题 I've just updated the Facebook iOS SDK in my project from 3.0 to 3.1. The project does not compile anymore. Instead I get the following linker errors: Undefined symbols for architecture i386: "_ACFacebookAppIdKey", referenced from: -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o) "_ACFacebookAudienceEveryone", referenced from: -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience

ARC and ASIHTTPRequest

两盒软妹~` 提交于 2019-12-18 10:56:06
问题 I have a strange problem. I use ASIHTTPRequest in a iOS 5 project with ARC enabled. Since ASIHTTPRequest does not support ARC I have disabled ARC on all individual ASIHTTPRequest files. However, when I'm trying to compile my project, xcode still believes that those files are ARC-enabled and it complains. Did I do anything wrong or is that a bug in xcode? Don't tell me to convert ASIHTTPRequest to ARC-compatible code with the refactor tool. I have tried to do that and xcode complains on that

Force iOS app to launch in landscape mode

戏子无情 提交于 2019-12-18 03:39:21
问题 I am developing an app for iOS 5, which have to run in landscape mode. My problem is that I cannot get it to flip initially. I have tried the adding "Initial interface orientation" set to "Landscape (right home button)" and adding the following method to my view controller: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); } I can wrap my

Why are xcodebuild and Xcode 4.2 so slow?

拟墨画扇 提交于 2019-12-17 17:59:26
问题 I am using Xcode 4.2 on a relatively large project (a few ten thousand lines of code) and it is horribly slow. Editing is ok, but whenever I try to compile the project (in Xcode, or with xcodebuild on the command line), my machine (quad core i7 MacBook Pro, 4 GB RAM) crawls to a halt. I have noticed that directly after starting xcodebuild, it spawns more than 8 clang processes, without the "real" compile processes starting. No xcodebuild output is so far seen on stout. I've tried reducing the

iPhone/iPod Touch: application executable is missing a required architecture

这一生的挚爱 提交于 2019-12-17 17:56:41
问题 I have an issue with xCode 4.2. I am getting this error when building: 2011-06-18 13:35:49.839 Validation[4110:607] *** Warning: Defaulting to the standard codesign tool warning: iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv6 (-19033) Unable to validate your application. - (null) I had a look at my project settings, and it has : architectures: Standard (arm7) - ${ARCHS_STANDARD_32_BIT) Build

Download Xcode 4.2 documentation for offline install

我只是一个虾纸丫 提交于 2019-12-17 17:34:47
问题 I've read a few posts on how to install the missing documentation on Xcode 4.2 by going into the documents manager and downloading it directly. Other questions suggest me to look into the rss feed, but I get only the Mac OS Lion Core reference, I want the iOS reference as well. That's very nice, but I can't connect to the internet from the Mac where I work , no need to enter in details, nor can install Mac OS on the PC where I connect, so my question is pretty simple: Where can I obtain the

Xcode 4 - clang error

半腔热情 提交于 2019-12-17 09:36:34
问题 I'm migrating from Xcode 3.5 to Xcode 4 and while I'm trying to Archiving my app for AdHoc distribution. I received this error Precompile MyApp_Prefix.pch ProcessPCH /Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/Build/PrecompiledHeaders/MyApp_Prefix-crxrbmeralwexyefvuwvzexquuin/MyApp_Prefix.pch.pth MyApp_Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/return/Projects/iphone-MyApp setenv LANG en_US.US-ASCII setenv