xcode4.2

Storyboards orientation support for xCode 4.2?

最后都变了- 提交于 2019-11-28 23:30:04
I upgraded to xCode 4.2 and it's new Storyboards feature. However, could not find a way to support both portrait and landscape. Of course, I did it programmatically, with 2 views, one for portrait and one for landscape, like in old days, and: if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight) { self.view = self.landscapeView; } else { self.view = self.portraitView; } But I was looking for a way to do this automatically somehow. I mean, it's xCode 4.2 now, I expected more from it. Thanks all. =========================

How to properly set run paths, search paths, and install names?

邮差的信 提交于 2019-11-28 22:59:57
问题 I have a collection of projects that I'm compiling as dynamic libraries. Each of these .dylibs depend on other various .dylibs that I would like to place in various other directories (i.e. some at the executable path, some at the loader path, some at a fixed path). When I run otool -L on the compiled libraries, I get a list of paths to those dependencies but I have know idea how those paths are being set/determined. They almost appear pseudo random. I've spent hours messing with the "Build

Xcode - Change Company Name and Username

你。 提交于 2019-11-28 22:32:41
I want to change this: // // ViewController.h // MyApp // // Created by _username on 12-04-05. // Copyright _company_name. All rights reserved. // And I tried: http://macdevelopertips.com/xcode/change-company-name-in-xcode.html and it didn't work. I also tried this: http://iosdevelopertips.com/xcode/change-company-name-from-within-xcode-on-a-per-project-basis.html but it did not exist in Xcode 4. I'm using Xcode 4.2 go to System preferences -> users and groups -> click on your username On that page there should be a button saying Open... click that and change that record in your contacts. When

how to get XCode to add build date & time to Info.plist file

删除回忆录丶 提交于 2019-11-28 21:21:51
问题 Finally... after a couple years of watching and a month of participating, I have a chance to ask you guys a question of my own. My boss doesn't trust me (or any process) to increment a build number, he also wants to have a build date & time baked into the app. I'd like to put this into the usual Info.plist file. I found this related question: Build information in iOS Application (date/time app was built) and based on the answers there, I went into the Scheme Editor and added the script below

Save CUSTOM metadata in an image taken from AVFoundation in iOS

馋奶兔 提交于 2019-11-28 19:24:33
问题 How do I save custom metadata in an image when i get the image using the AVFoundation framework ? I know I can access the properties weather it I have my image as UIImage or CIImage but the properties that these seem to have differ from each other (even if it is the same image). So far I access the dictionary like this: (Code taken from Caffeinated Cocoa blog) NSLog(@"about to request a capture from: %@", [self stillImageOutput]); [[self stillImageOutput]

Conditional segue performed on tap on UITableViewCell

戏子无情 提交于 2019-11-28 19:07:36
I'm working on some project for iOS 5 using Xcode 4.2. I have one UITableViewController and want to perform a segue when user tap on table cell, but destination view controller depends on action performed on that cell. For example, when user tap on cell I would like to load SomeViewController, but when user tap on the same cell in editing mode I would like to load AnotherViewController. Unfortunately, there is no way to configure multiple segues on same cell in Xcode 4.2 storyboard builder, or I just don't get it. Perhaps there is a way to create segue by hand, in code editor. Generally what I

Xcode 4.2 iOS Empty Application and storyboards

£可爱£侵袭症+ 提交于 2019-11-28 17:48:20
I'm an Xcode newbie, and I'm trying to make my first training app. Since apparently Empty Application template is the only template that offers pre-integrated Core Data, I choose that. However, after that, I can't get UI to work (it remains empty). What I did: Empty Application template New iPad Storyboard file Splashed Tab Bar Controller onto it Changed Main Storyboard in Project's Summary view Hit ⌘R Stared at pure-white iPad screen, without any tabs I tried diffing against another project that I created as a Tab Bar Application (which does reflect my Storyboard changes), without any insight

How is view initialized when loaded via a storyboard?

心不动则不痛 提交于 2019-11-28 16:35:35
问题 When view is loaded manually, developer remains in control when it comes to initializations, we choose what initializer to call, what variables to set etc. When view is loaded from the storyboard segue ... what happens to that initializer? Where should variables be set i'd like to be available once view had been loaded? Please help me understand the sequence here. How is instance of the class created here, who creates it and how can we intervene and help set it up to our liking? 回答1: When a

Xcode 4.2 (Snow Leopard) and iOS 5.1 [duplicate]

﹥>﹥吖頭↗ 提交于 2019-11-28 16:22:21
问题 Possible Duplicate: ios 5.1 with xcode 4.2 for iOS development I updated my iPhone to iOS 5.1. My operating system is Snow Leopard. Now I need the sdk 5.1 to develop, with xcode 4.2. Where can I download it? Any suggest? Solution: Downgrade to ios5.0 or update to Lion 回答1: You can't. You need to update to Mac OS 10.7 Lion in order to get the latest version of Xcode with the 5.1 SDK. The last installable version of Xcode on Snow Leopard will be 4.2. Apple really wants developers to keep up to

Displaying a Cocoa Window as a Sheet in Xcode 4 (OSX 10.7.2) with ARC

蓝咒 提交于 2019-11-28 15:48:20
问题 I'm trying to get a Login Window to display as a sheet from my MainWindow, but whenever I try to implement the AppKit methods an error always pops up for various indistinguishable reasons. None of the online guides out there are working, when i apply their code / adapted classes to my own project they never work. Most of the guides are heavily outdated, including the Apple Documentation. And none of them seem to be compatible with Automatic Reference Counting. Or the Xcode 4 interfaces. Would