storyboard

NSWindowController/NSViewController “Presentation” setting in Storyboard

≡放荡痞女 提交于 2019-12-21 07:02:16
问题 What exactly does the Presentation option(in Attribute Inspector) do in StoryBoard for Cocoa. It gives two options to select from Single Multiple P.S When googled the title, results are related to powerpoint presentation 回答1: The presentation style affects "Show" segues. Possibly it affects other segues too, but I only tested a Show segue. I tested on OS X 10.10.5 (Yosemite) with Xcode 7.1.1. If a window controller's presentation style is "Multiple" (the default), then a Show segue to the

Embedding container view into UIScrollView

拜拜、爱过 提交于 2019-12-21 06:03:18
问题 I've been searching high and low to try and figure this out hopefully someone can help (I think this is probably fairly trivial but I'm just over confusing the situation!) I'm using XCode 5 and storyboards. I have a container view which takes up around 75% of the screen space on an iPhone. Above this I have some buttons (and other widgets). I want to be able to load in a view controller into the container when pushing one of the buttons. So far all of this works ok, but the view controllers

Updated to Xcode 7.0.1 and Project now has problems

半世苍凉 提交于 2019-12-21 05:36:33
问题 So I uploaded my Xcode 6.1 build to iTunes Connect and the app was approved. Now i'm trying to update the app and I updated to Xcode 7.0.1 and Xcode is giving me problems stating: (For app I used storyboards and Objective-C) warning: All interface orientations must be supported unless the app requires full screen. warning: A launch storyboard or xib must be provided unless the app requires full screen. - (NSUInteger)supportedInterfaceOrientations { return (UIInterfaceOrientationMaskPortrait |

Best practice for switching between UINavigationController stacks in Storyboard

好久不见. 提交于 2019-12-21 05:06:42
问题 In our storyboard we have multiple UINavigationController stacks. For example, the LoginViewController stack is completely separate from the SWRevealViewController stack. What's the best practice for switching between them? When I press the logout button (the logout button is on the SWRevealController stack) and then try to present the LoginViewController stack, I get an error like this: Warning: Attempt to present LoginViewController on SWRevealViewController whose view is not in the window

Should Xcode Storyboard support segues from a UITableView with 'dynamic prototype' cells?

混江龙づ霸主 提交于 2019-12-21 05:04:37
问题 I can't get this working. If I drop the master UITableView to use Static cells I can get the segues working, such that when you click on a row in the master it automatically pushes the Child controller on. But with 'dynamic prototype' cells, I click on one of the cells and nothing happens... Am I supposed to programmatically push the child controller within the prepareForSegue method or something? In which case I'm not sure what advantage a segue here would have over the old way of just using

How to connect an IBOutlet from an UITableViewController directly to custom cell?

萝らか妹 提交于 2019-12-21 04:40:53
问题 A few days ago, I watched the video tutorial which explains how to use custom cells in an UITableViewController. I've learned that I can prepare a custom cell directly in the interface builder, so I did following: I created a UITableViewController and connect a custom class which consists of an IBOutlet (UILabel). After that, I switched in my storyboard and prepared my custom cell with an UILabel. Finally I connect the label from UITableViewController to my custom cell directly. The following

ios - Connect one UIButton to 2 segues

天涯浪子 提交于 2019-12-21 04:05:13
问题 I have a UIButton and I am trying to connect it to two segues. Which segue is used depends on a number of conditions. For example, when the UIButton (with title "next") is pressed, if(condition 1) then go to screen A. else go to screen B. I believe my code is correct (I have included it anyways), but the problem is that in the storyboard view, I can connect one button to only one view controller using a segue. How do I fix this ? Here's the code I'm using - -(void)prepareForSegue:

How to remove cell from static UITableView created in Storyboard

我的梦境 提交于 2019-12-21 03:54:12
问题 This should be easy, but I'm having trouble. I have a static UITableView with a cell that I would like to remove programmatically if it's not needed. I have a IBOutlet for it IBOutlet UITableViewCell * cell15; And I can remove it by calling cell15.hidden = true; This hides it, but leaves a blank space where the cell used to be and I can't get rid of it. Perhaps a hack would be to change the height of it to 0? - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:indexPath { /

'Storyboard doesn't contain a view controller with identifier' only on Device

一个人想着一个人 提交于 2019-12-21 03:32:34
问题 I have this storyboard : With this ViewController : I have this code to instanciate my VC : let VC = UIStoryboard(name: "Main_iPhone", bundle: nil).instantiateViewControllerWithIdentifier("POIListViewController") When i'm running on simulator, everything works thine. But when i launch on real device, i have this exception : 2016-07-12 10:56:19.073 App-Ely[1935:562264] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0x185481b0>)

What are the differences between Restoration ID and identifier to a UITableViewCell that set in storyboard

怎甘沉沦 提交于 2019-12-21 03:09:07
问题 When I drag a UITableViewCell to a tableView in storyboard , I find there are two ID to be set in the inspector. One is in the Identity Inspector( Restoration ID ) and the other is in Attributes Inspector(identity). What's the difference between them? 回答1: Restoration IDs are used for state restoration, i.e. making your view look like it did when you quit the app-often used for re-creating objects . Storyboard IDs, on the other hand, simply identify objects on the storyboard-these are often