xcode4.2

CMMotionManager is a global resource? What does this means?

你。 提交于 2019-12-11 09:45:23
问题 I am trying to initialize the CMMotionManager so start updates and create a reference attitude matrix, and then when i click a button trough the storyboard, i display a different screen (which is in a viewcontroller) and i want to use the reference attitude matrix and other readings from the motion manager but if I do a simple check to see if its ready it says it isnt (even thought it was ready on the previous screen). So I was researching a little bit and i came across some standford notes

Universal app - how to?

大憨熊 提交于 2019-12-11 08:36:43
问题 I'm using Xcode 4.2 and in the process of writing a universal app. I selected SingleView Application template when starting with a new project. XCode added ViewController1.h, ViewController1.m, ViewController1_iphone.xib and ViewController1_iPad.xib. I need to add more UIs and clicked on the File...New...New File and selected UIViewController subClass template and seeing two checkboxes (Targeted for iPad, With Xib for User Interface). What should I do here to support both iPad and iPhone

clang failed with exit code 1 when building Archive, works when building Debug

ぃ、小莉子 提交于 2019-12-11 08:19:55
问题 My build settings show my Developer provisioning profile for Debug and my Distribution provisioning profile for the Release and Distribution schemes. I've verified that my Distribution provisioning profile is up to date and doesn't expire until August of 2012, so that's not the problem. Ld /Users/kenny/Library/Developer/Xcode/DerivedData/MyAppName-fxknidnbrepotqdvhgjnepxdhonz/ArchiveIntermediates/BalanceSheet/IntermediateBuildFilesPath/MyAppName.build/Release-iphoneos/MyAppName.build/Objects

Can I install Xcode 4.2 on OSX 10.6.8 (Snow Leopard)?

痴心易碎 提交于 2019-12-11 07:24:22
问题 My Mac has snow leopard version 10.6.8. I have installed Xcode 3.2.5, can I update to xcode 4.2 with my present OS version? 回答1: No, not possible, you need the latest version of Mac OSX: Snow Lion (10.8) to run xCode 4.2. Luckily, the upgrade isn't that expensive, and is said to be worth the money (have bought the upgrade already, but not installed it myself :-) ) 回答2: Yes, you can. 4.2 is the last XCode version that supports Snow Leopard, you'll need a later OS version to use anything newer.

“POSIX file” works in Applescript Editor, not in XCode

旧时模样 提交于 2019-12-11 06:46:48
问题 Try this: Make a new XCode4 Applescript project. In the delegate, paste this code: on doIt_(sender) set goodHFSLoc to (path to desktop folder) set test1 to (POSIX path of goodHFSLoc) log "test1:"&test1 set theJSPath to "/Users/dave/Desktop/MakeTSLabels.js" set jsHFSFile to (POSIX file theJSPath) set test2 to (POSIX path of jsHFSFile) end doIt_ Hook this method up to a button in the UI window. Run the program Click the button, and you should get this error: Can’t get POSIX path of class

How to use @protocol in AppDelegate iPhone app?

*爱你&永不变心* 提交于 2019-12-11 05:26:33
问题 I am working in iPhone app with 5 screens. I want to refresh the values in the screen 4th in UITabBarController. I have added @protocol in AppDelegate but it is not calling. This is the first time am using @protocol could you please help me to solve this issue, In AppDelegate.h @protocol ReloadViewControllerDelegate <NSObject> -(void) refreshViewController:(NSString *)result; @end id refreshViewControllerDelegate; @property (nonatomic, retain) id refreshViewControllerDelegate; and i have

Implement a keyboard click sound, lost

谁都会走 提交于 2019-12-11 04:48:35
问题 Everyone on this site has been very helpful on my schooling of iOS programming, but I've run into a brick wall with a very simple feature. I've found Apples documentation on implementing the factory keyboard click sound upon a button touch, but what Im not getting is the "creating a sub lass of UIView" part. I have a very basic calculator that I've built, the buttons are made of standard Round Rect's that I want to make the simple click sound. So Apple says:Adopting the

Malformed metadata record for architecture i386

与世无争的帅哥 提交于 2019-12-11 04:36:54
问题 I just upgraded from Xcode 4 to Xcode 4.2 and now I'm getting the following error when building for the Simulator: ld: in /Users/rstaicut/Library/Developer/Xcode/DerivedData/iphone/Build/Intermediates/iphone.build/QA Server-iphonesimulator/Project iPhone Debug.build/Objects-normal/i386/CartController.o, could not parse object file /Users/rstaicut/Library/Developer/Xcode/DerivedData/iphone/Build/Intermediates/iphone.build/QA Server-iphonesimulator/Project iPhone Debug.build/Objects-normal/i386

XCode hangs when archiving

怎甘沉沦 提交于 2019-12-11 03:16:01
问题 When I try to archive one certain project, Xcode fails to respond. If left alone he manages to open the Organiser after a long period. The archive is there. If removed manually from library/developer/xcode/archives Xcode responds again. It happens just with this project, all others archiving just fine. As if Xcode has major problems with the project. We are using Xcode 4.2.1 but tried 4.3 too (same result). Any idea what might be wrong? 回答1: I had similar problems I found that a symbolic link

how to edit project settings in xcode 4.2?

喜欢而已 提交于 2019-12-11 03:12:47
问题 This sounds dumb but i want to edit my project settings and change my delevelper profile of a project which in xcode 3.2 was project>>edit active targets/ edit project settings but cant find this on xcode 4.2 beta version :( Does anyone know how to. thnx alot in advance. 回答1: As previously mentioned I can't talk about Xcode 4.2, however in Xcode 4.1 to change your provisioning profile you would do this: Select the Project navigator using folder icon on the left of the navigator sidebar Select