uistoryboard

UIDesign advice for the application

佐手、 提交于 2019-12-11 18:19:59
问题 I have tried to draw the UI that I want to make for my application which is related to comparing the cricketers and giving their updates Now as you can see above In compare screen there are two sections One is image where two user can like and dislike and other thing is that you will get live updates of the above images which u have already liked or disliked.. This whole screen is scrollable and the compare sections height is set during runtime depending on the number of rows we get at the

Many tutorials describe methods for adding multiple child view controllers in the Storyboard, why don't they just add multiple container views? [closed]

China☆狼群 提交于 2019-12-11 17:54:50
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . Many tutorials, such as this one go over how to add multiple child view controllers via the Storyboard. But this tutorial just adds multiple container views in the Storyboard. Why is the first tutorial (and many others) going through such hoops to create multiple child view

Segue Fires but screen doesn't transition

岁酱吖の 提交于 2019-12-11 17:33:08
问题 Using storyboards, I have a view controller which segues to another. I have two segues, one from a button and one from the view controller. I want to fire the view controller segue programmatically based on certain conditions, so in the viewDidLoad method of the first screen I call [self performSegueWithIdentifier:@"SkipName" sender:self]; Using the debugger I can see that prepareForSegue gets called, but the view doesn't move on. Any help greatly appreciated. 回答1: Putting it in viewDidAppear

Identifying and fixing auto layout issue from log output

半腔热情 提交于 2019-12-11 17:21:35
问题 I'm preparing a multi device information focused iOS app almost exclusively in interface builder storyboard. I'm using table view controllers with text or other content into static table view cells. In specific cells, I want a grid of text fields with the same height rows but various widths - depending on the length of the text field. I'm using a vertical stack view that contains horizontal stack views, all with Alignment: Fill and Distribution: Fill Proportionally. If I do not reduce the

UIStackView Autolayout constraints

淺唱寂寞╮ 提交于 2019-12-11 17:04:33
问题 I am creating a UIStackView with two buttons + & -. In the landscape mode the stackview it looks like this with vertical axis. And in portrait mode it has horizontal axis like this: Problem: Each button +/- is 50 points high. In landscape, I set w=50 & h=140 for the stack view whereas for portrait I set w=200 & h=50. I set the spacing property of UIStackView of 20 points in landscape and 100 points in portrait. I use 'Vary for Traits' to define different constraints for the two modes as well

Where is UINavigationItem disappearing to when refactoring views to storyboard?

若如初见. 提交于 2019-12-11 16:35:51
问题 I'm rewriting an Obj-C project using Swift 4 / Xcode 9.2 I have a large storyboard that I am breaking down into multiple storyboards. I did this previously without any issues. If I refactored a few views to their own storyboard then the views took the navigation item with them. now they disappear... [ My questions are ... Is this an Xcode bug? or a new feature? Obviously you can work around this as I have shown in the pictures but is there a way to stop the vanishing from happening? 回答1: This

UITableViewController TableView wont scroll

霸气de小男生 提交于 2019-12-11 14:49:54
问题 Im transferring my project from xibs to using a storyboard. I just added the Settings page, which i made from a UIViewController to a UITableViewController. The table view cells are added using the static method in the storyboard. The table has 5 sections, with 12 cells. I have no other code doing anything to the TableView, and in the storyboard scrolling is on. When running on my iPhone 5 the view wont scroll, all the cells are there, and i can pull and see the cells hidden, but when letting

Xcode Storyboard preview size classes blank

倾然丶 夕夏残阳落幕 提交于 2019-12-11 13:49:28
问题 I have a problem with storyboard preview. When I select a old ViewController created with a previous version of Xcode (6.0), the preview show me only the navigation bar. But, if I create a new ViewController and put inside it some elements, the preview works. The current version of Xcode is the 6.3.2. Thanks 回答1: The interface elements that you put inside the "old ViewController" were added under a particular size class. You are not in that size class with your preview, so those interface

Showing views in interface builder outside viewcontroller hierarchy in xcode5

岁酱吖の 提交于 2019-12-11 13:46:27
问题 I often make use of views in interface builder that live outside of the viewcontroller hierarchy (see screen grab below for simple example). Before upgrading to Xcode5 I could get this view to appear on the storyboard by writing an IBAction outlet and dragging a connection from the code to the view in the storyboard. If you paused over the button for a moment it would flash and then open up as a view on the storyboard that is then a lot easier to work with. Since upgrading this function no

Instantiating a Swift ViewController in an Objective-C project

旧时模样 提交于 2019-12-11 12:11:29
问题 I've imported a Swift UIViewController in an Objective-C-based project and I've followed Apple's guide to using Swift Classes in Objective-C and This useful step-by-step Swift integration for Xcode Objc-based projects My project doesn't crash, but I can't get a view to load. I'm attempting to instantiate a viewController , but it shows up as a white blank screen: UIViewController *rootViewController = [storyboard instantiateViewControllerWithIdentifier:@"mySwiftVC"]; I put a breakpoint in