uistoryboard

Using UITabBarController with UINavigationController - Swift 3

旧城冷巷雨未停 提交于 2019-12-02 07:53:43
I am making an app which requires a use of a UITabBarController along with UINavigationController . I have made the following flow in storyboard. See image Now the first question is that is this accepted by Apple, as there are too many discussions for the same. The other matter of concern is that is it possible to eliminate any UINavigationController and still get the same flow of the app? The main thing required is to have the SAME tab bar and navigation bar on all sub tabs of the tabs. One point to be noted is that if I remove the second UINavigationController then my app navigates directly

UITabBar and back button disappears in iOS 9

柔情痞子 提交于 2019-12-02 05:46:57
问题 In iOS 9, when I segue from a table to a navigation controller, the nav bar and the tab bar disappear. As a result, my users will be hosed. How to fix it? My StoryBoard structure is basically this: ->Tab Bar Controller->Nav Controller->Table View->Nav Controller->Table View->.... When I select a row in the first table view, the segue occurs, but the tab bar and back buttons disappear. ----> Notice the missing parts in the right picture. DTS request has been filed, bug was reported months ago

Update storyboard constraint using code

允我心安 提交于 2019-12-02 03:02:25
I have a UIImage in code that I would like to enlarge vertically when a button is pressed. The UIImage is fully constrained in the storyboard and I would like to change its height when the button is pressed. I have linked the UIImage and its height constraint in the code: @IBOutlet weak var botBotCons: NSLayoutConstraint! @IBOutlet weak var botBot: UIImageView! Then @IBAction func testButton(sender: UIBarButtonItem) { println("testButton pressed") self.botBotCons.constant = 68 //or +=62 as its current constant is 6 self.view.layoutIfNeeded() } I get the testButton pressed message in the

How to create a segue from UIViewController to a UISplitViewController

六月ゝ 毕业季﹏ 提交于 2019-12-02 02:34:48
问题 Here's my setup for an iPad app. I created a new project using the Single View Application with UIStoryboard . XCode created the main UIViewController as the entry point. In the view I placed a toolbar with a button. I then insterted a UISplitViewController to the storboard. What I want is from the toolbar to have a button that will load the split view with master/detail tables. I tried to click on the button and drag to the splitviewcontroller, which created a segue, but every combination I

UITabBar and back button disappears in iOS 9

折月煮酒 提交于 2019-12-02 01:13:59
In iOS 9, when I segue from a table to a navigation controller, the nav bar and the tab bar disappear. As a result, my users will be hosed. How to fix it? My StoryBoard structure is basically this: ->Tab Bar Controller->Nav Controller->Table View->Nav Controller->Table View->.... When I select a row in the first table view, the segue occurs, but the tab bar and back buttons disappear. ----> Notice the missing parts in the right picture. DTS request has been filed, bug was reported months ago etc. Yes, as I stated, you can't nest a navigationController within a navigationController, or you will

How to create a segue from UIViewController to a UISplitViewController

跟風遠走 提交于 2019-12-02 01:02:39
Here's my setup for an iPad app. I created a new project using the Single View Application with UIStoryboard . XCode created the main UIViewController as the entry point. In the view I placed a toolbar with a button. I then insterted a UISplitViewController to the storboard. What I want is from the toolbar to have a button that will load the split view with master/detail tables. I tried to click on the button and drag to the splitviewcontroller, which created a segue, but every combination I created failed to run and crashed. My toolbar will have many other buttons which will load other views.

Resize NavigationController in InterfaceBuilder

泄露秘密 提交于 2019-12-01 21:28:16
This could be a daft question, but is there a way to resize the Navigation Controller in a storyboard? It simply takes up too much screen space. Most of my views are pop-overs at the right size but then have a huge iPad size Navigation Controller next to them. This is purely for visual work in Interface Builder as I have about 20 different screens and it's getting a bit crowded. 来源: https://stackoverflow.com/questions/10988168/resize-navigationcontroller-in-interfacebuilder

How do I create a keyboard accessory view with Auto Layout in Interface Builder?

余生颓废 提交于 2019-12-01 18:40:29
I want to add a "Done" button and a segmented control to a Decimal Pad keyboard. Ideally I would like to lay out a keyboard accessory view with Auto Layout in Interface Builder. Is this even possible? Do I create a new XIB or can I do it in the existing Storyboard scene somehow? How do I attach the accessory view to the appropriate text field? Would you mind doing it programmatically? Typically you take a UIToolbar to a UITextField with your items, but you may need to subview the UISegmentedControl; UIToolbar *keyboardToolbar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, [UIScreen

Xcode 4.3 how to merge storyboard changes from two developers using SVN?

半腔热情 提交于 2019-12-01 16:26:11
I'm running into an issue where a project has multiple developers working on the same storyboard file. As developers add controllers to their own version of the storyboard, the files need to be merged. As I look at a storyboard in plain text format during merge, I can't make sense of what changes I should accept and in which order. Is there some sort of tutorial or a guideline on how to do merge changes from versions of the same storyboard? How do you manage changes to the same storyboard made by multiple developers? Thank you! Xval I guess my answer won't help you but... It seems like you can

Xcode 6 - Push segue to same view controller

こ雲淡風輕ζ 提交于 2019-12-01 16:10:52
问题 I have a table view controller and tapping on a cell can trigger one of many different types of push segues based on the type of data in the cell. The identifier of the correct segue is determined in tableView:didSelectRowAtIndexPath: and then the segue is triggered with self.performSegueWithIdentifier: For one of those segues, I'd like to push another instance of the same view controller on to the navigation stack. Is this possible without having to drag a new view controller object of the