uistoryboard

Create a standalone view in storyboard to use programmatically

自闭症网瘾萝莉.ら 提交于 2019-12-03 05:37:17
I'm trying to create and design a UIView using a storyboard but include it in a UIActionSheet programmatically. This is basically to avoid using CoreGraphics positioning functions with pixels In old xcode I remember that it was possible to drag a UIView onto the nib without any controllers. The view obviously has to be connected to the class, so it would have an IBOutlet, but not being added to the self.view One thing that makes me feel like this should be possible is that if you drag a UIView into the controller black bar in storyboard it pops into place like so: But its not shown on the

position a view in storyboard at 1/3 of screen size

折月煮酒 提交于 2019-12-03 05:25:16
I'm trying to position a view in storyboard to always have it top edge at 1/3 of screen size. I have currently set a constraint to Top Layout Guide, but the constraint's constant is...well it is constant no matter which screen size it is used in, but I want it to be 1/3 of screen size. Can this be done entirely in storyboard? Thanks for answers Screenshot of current state: Create a constraint between the view's top edge and the superview's bottom edge. Set the constraint's constant to zero, and set its multiplier to 1:3. Like this: You can setup it against center or bottom. Here is an example

iOS9 storyboard what is unhandled action (handleNonLaunchSpecificActions)?

一曲冷凌霜 提交于 2019-12-03 04:39:08
问题 I've noticed the following error popping up in the console when running my app on iOS 9 when using a storyboard. I'm using xCode7. Is this something I need to be concerned about? -[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:completion:] ** unhandled action -> <FBSSceneSnapshotAction: 0x176bfb20> { handler = remote; info = <BSSettings: 0x176a5d90> { (1) = 5; }; } 回答1: There is nothing wrong with your code. This is a logging message internal to Apple, and you

How do I make a now playing bar like in media player apps in iOS with XCode?

风格不统一 提交于 2019-12-03 04:36:41
问题 I am making a media player app. I have UITableViewControllers that are embedded in Navigation Controller. I would like to somehow make a view that would overlay potentially multiple (2?) of these tableviewcontrollers (one that shows the user's playlists, and the next would show the tracks in the playlist), but only at the bottom, like a now playing bar in (e.g.) Spotify's iOS app (as in the left bottom side of this or as in this I have tried to drag a Container View into my Navigation

iOS Storyboards Should I use them or not? [duplicate]

旧街凉风 提交于 2019-12-03 02:55:42
This question already has an answer here: When to use Storyboard and when to use XIBs 9 answers I am new to iOS development (No apps created yet), but I ask for advice from my friend that has really high rated apps on the market. He said not to use storyboards. As much as I want to take his advice, they seem really helpful. Is this something that can cause problems for my app in the future? Is there any reason I may want to not use storyboards? Coming from an Android background, I don't see why I should use them. I tend to avoid storyboards for anything apart from perhaps a quick prototype. If

Xcode 6 how to enable storyboard zoom?

孤街醉人 提交于 2019-12-03 02:54:05
问题 I've updated to Xcode 6 beta 3 and see that the [+ = -] buttons in the storyboard corner are gone. Is there a way for me to zoom in and out on view controllers within a storyboard in Xcode 6? 回答1: You can zoom the storyboard by double-click canvas or using top-menu(Editor > Canvas > Zoom). Alternatively: Right click blank space on canvas and choose zoom level (allows to zoom out further than double click) 回答2: If you have a magic trackpad (external or embedded in the macbook) you can also

iOS-like storyboard tool for Android project? [closed]

醉酒当歌 提交于 2019-12-03 02:29:51
Do we, Android developers, have any tool like iOS developers have which can help us make story board of all activities and links between them? Those who have seen iOS story board tool will know what I am talking about. It would be really cool as we would be able to visualise the UI logic. PS. check my storyboard tag iOS storyboards allow you to define the flow of your app without (almost) writing a single line of code using the Interface Builder. I don't think there's similar tool for Android. You'll need to create the layouts separately and then glue them calling startActivity (or its

Present View Controller in Storyboard with a Navigation Controller - Swift

流过昼夜 提交于 2019-12-03 02:12:28
问题 I am currently showing a viewController in my new storyboard below: var storyboard : UIStoryboard = UIStoryboard(name: AccountStoryboard, bundle: nil) var vc : WelcomeViewController = storyboard.instantiateViewControllerWithIdentifier("WelcomeID") as WelcomeViewController vc.teststring = "hello" self.presentViewController(vc, animated: true, completion: nil) However, this presents the viewcontroller without its embedded navigation controller. I tried changing "WelcomeID" to the navigation

Why does git add&remove the Storyboard <classes> section repeatedly?

点点圈 提交于 2019-12-03 01:37:57
When saving the storyboard and committing the changes to git, the chances are good that the whole <classes> section will be removed from or added to source control (git). I am using git on the command line, not the XCode integrated UI. First it looks like this: + <classes> + <class className="CPTGraphHostingView" superclassName="UIView"> + <source key="sourceIdentifier" type="project" relativePath="./Classes/CPTGraphHostingView.h"/> + </class> ... + </classes> And in the next commit it looks like that: - <classes> - <class className="CPTGraphHostingView" superclassName="UIView"> - <source key=

Add space from the top for navigation title

我是研究僧i 提交于 2019-12-03 00:37:00
问题 Want to give additional space from the top for navigation title shopping list. How can I do it? Dont see a option to do it in the properties of navigation item in the story board. Its close to the date, battery icon in the top of the app. Attached the screenshot. Tried the below code its not working using swift2 override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. navigationController?.navigationBar