xcode4.2

Storyboards and custom container view controllers

偶尔善良 提交于 2019-11-28 06:56:03
I'm creating a custom container view as per the apple spec . I would like to use the storyboard to connect three static child UIViewControllers. Is there an easy way in the storyboard to connect via a Relationship as seen for the UINavigationController in the storyboard? Based on my research, it seems like this isn't possible. It IS possible to link a container view controller to a child. In fact, it's trivially easy to do so. You bring up the Object library, type "Container" into the search field, and look for the object "Container view". It looks like this: Drag a container view into your

ios 5 UISearchDisplayController crash

孤街浪徒 提交于 2019-11-28 06:50:06
I am implementing a UITableView with UISearchDisplayController in xcode 4.2. UITableView & UISearchDisplayController are created in StoryBoard. I set the Cell Identifier (SampleCell) for UITableView and access it like cell = [tableView dequeueReusableCellWithIdentifier:@"SampleCell"]; UItableView is working fine. But once i try to search, the app crash with below error. *** Assertion failure in -[UISearchResultsTableView _createPreparedCellForGlobalRow:withIndexPath:], /SourceCache/UIKit_Sim/UIKit-1912.3/UITableView.m:6072 2011-11-09 22:22:16.058 SampleApp[14362:fb03] *** Terminating app due

Xcode 4.2 Warnings when dropping Nav Controller on Tab Bar in IB

独自空忆成欢 提交于 2019-11-28 06:49:12
I'm developing an app which is iOS 4 compatible, so my deployment target is set to iOS 4.0. Whenever I drop a UINavigationController onto a UITabBar , I get these two warnings: warning: Attribute Unavailable: Defines Presentation Context is not available prior to Xcode 4.2. warning: Attribute Unavailable: Defines Presentation Context on iOS versions prior to 5.0. The UINavigationController functions as expected, in fact, the entire app runs perfectly. But these two warnings are driving me nuts! Also, the moment I delete the UINavigationController the warnings disappear. Just uncheck the

XCode Storyboard merging

拈花ヽ惹草 提交于 2019-11-28 06:08:05
Is there a way to merge XCode 4.2 Storyboard files? I'm working with another developer on an iPhone project and all my attempts at merging changes into a storyboard file have met with failure and after which Xcode is no longer able to load the storyboard. Consequently I have to do an svn revert and then redo my modifications. Adam Here's the only tool I've ever come across which lets you merge storyboards: https://github.com/marcinolawski/StoryboardMerge 来源: https://stackoverflow.com/questions/8393214/xcode-storyboard-merging

Why are xcodebuild and Xcode 4.2 so slow?

强颜欢笑 提交于 2019-11-28 06:06:36
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 number of parallel build processes , but still lots of clang processes are launched at the beginning.

xcode won't compile iOS apps, crashes when .xib or .storyboard files are opened

随声附和 提交于 2019-11-28 06:05:13
问题 I'm running the very latest version of xcode (4.2.1). And I'm signed up to the ios developer program. When I create a new iOS Application for iPhone or iPad, using storyboards or not it doesn't seem to matter, xcode crashes on me when I try to open the .xib or .storyboard files. Here is the error provided when I click on the storyboard file before it crashes. ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-933/IB Plugin/Utilities

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

女生的网名这么多〃 提交于 2019-11-28 05:45:48
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 active architecture only : NO Not sure what For some reason the default architecture settings with xCode

Download Xcode 4.2 documentation for offline install

*爱你&永不变心* 提交于 2019-11-28 04:11:13
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 required files to install them into Xcode and how do I install them? Any links or instructions would be

connect button to TableViewController in xcode

主宰稳场 提交于 2019-11-28 02:20:57
I have a button in my view controller and I want to connect my button to table view controller (It means that when I click on button it loads and brings my table) but I don't know how should I do that(I can connect my button to another view controller but not to the table ), here is my code Thanks in advance!(I'm really beginner) FirstViewController.h #import <UIKit/UIKit.h> @interface FirstViewController : UIViewController @end FirstViewController.m #import "FirstViewController.h" @interface FirstViewController () @end @implementation FirstViewController - (void)viewDidLoad { [super

Static cells: Content does not appear

被刻印的时光 ゝ 提交于 2019-11-28 01:39:38
问题 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)