storyboard

UISplitView with multiple storyboards

杀马特。学长 韩版系。学妹 提交于 2019-12-11 20:11:26
问题 I have an iPhone app containing overview (table view) and multiple detail views (different kinds of views). For the purpose of modularity, all detail views use separate storyboards. Now I need to make my app universal. For that, I want to use an UISplitView with the overview as master view and load the details views on the right. However, I am not sure that it is possible to do it with my multiple storyboards. What are my possibilities? I have to keep the app modular. I have already separate

When I click the back button my view changes from landscape to portrait

江枫思渺然 提交于 2019-12-11 19:34:49
问题 I am using storyboard and have my app set to be only horizontal left and right. I have a view controller where I click to go to my next view and do whatever, and when I am done I click the back button. What happens is when I click the back button the horizontal view switches to portrait and messes my whole app up. I have my segues set as push, but I did have them at modal. Then it goes to my next screen When I click back, it for some reason switches to portrait and looks like this: I have no

Should I be using AVKit Player view?

こ雲淡風輕ζ 提交于 2019-12-11 19:33:22
问题 So my app has gone from being a single view to being a navigation controller view + tab bar controller view. Now in my single app view controller I had all this code. // // ViewController.swift // DRN1 // // Created by Russell Harrower on 24/11/19. // Copyright © 2019 Russell Harrower. All rights reserved. // import UIKit import AVKit import AVFoundation import Kingfisher extension UIImageView { func setImage(with urlString: String){ guard let url = URL.init(string: urlString) else { return }

Issue in adding UIContainerveiw to SlideViewNavigation in StoryBoard iOS

戏子无情 提交于 2019-12-11 19:07:00
问题 I am trying to add a persistent button at the bottom of view via UIContainerView in storyboard on SlidenavigationController. But I am getting a blank view on navigation of left slide out(where as it is working fine with list of table contents on left slide out with out the container View) (used a third party Tool with iOS-Slide-Menu ) Storyboard Code for mainPageViewController - (void)viewDidLoad { [super viewDidLoad]; UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main"

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

iOS 5 Storyboard Custom Cell Crash: UITableView dataSource must return a cell

﹥>﹥吖頭↗ 提交于 2019-12-11 18:06:27
问题 This is either an XCode bug, or me missing a crucial rule here. Update: - What's the chance of this being a weird bug in XCode/Storyboard? Situation: iOS 5, Storyboard This is the storyboard setup: http://i.imgur.com/T5WyD.png Another screenshot of the full setup: http://i.imgur.com/1tVuz.png TableViewController with Custom Cell, cell has reusable identifier "NewCell" in "cellForRowAtIndexPath" I basically have: UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"NewCell"];

Universal Autolayout for Scrollview & UI components

情到浓时终转凉″ 提交于 2019-12-11 16:32:12
问题 I know auto layout but I am new to universal application with auto layout. I am having problem setting up Constrain to this below image. Can you tell me how do I set auto layout for Universal App? I tried with constrain to margin & pin the leading,top,trailing space to container but it does not work. 回答1: Actually, autolayout works different inside a scrollview than in other views. Inside a scroll view, the leading, trailing, top and bottom constraints form a superview to the container view

UIViewController defined in a xib file doesn't load in the storyboard

白昼怎懂夜的黑 提交于 2019-12-11 15:31:36
问题 I'm trying to load a subclass of a UIViewController with its views defined in a xib file into a storyboard. Let's call it a NibViewController. The point of this approach is to reuse the same ViewController in multiple screens of the app. I know it's possible to do it manually in the code, but I'm looking for a solution in the storyboard. I've tried suggestions from other topics like this one, but nothing worked. The ViewController is correctly displayed in the simulator but not in the

Adding a space before and after the text in UILabel using the storyboard

岁酱吖の 提交于 2019-12-11 15:24:04
问题 How to add a space before and after the text in UILabel using storyboard. Here is an example of label with a background. 回答1: One approach is: Use auto layout in the storyboard. Use a UILabel subclass that overrides intrinsicContentSize to be a little wider than the default. For example: extension CGSize { func sizeByDelta(dw dw:CGFloat, dh:CGFloat) -> CGSize { return CGSizeMake(self.width + dw, self.height + dh) } } class MyWiderLabel : UILabel { override func intrinsicContentSize() ->

How to create UIPageviewcontroller within container using iOS Objective C?

試著忘記壹切 提交于 2019-12-11 14:41:09
问题 I have created UIPageviewcontroller Inside the container with two sub view controllers for page navigation. Now the problem Is I have set the constraints for container on mainviewcontroller like below Issue : Need to control the container. its showing top side and hiding top custombar and landscape also Its not sowing. I have create container on base view. the base view have good constraints. 回答1: For above issue We need to set like below // Add the page view controller to this root view