storyboard

iOS Switching an embedded view in storyboard

余生颓废 提交于 2019-12-20 10:49:09
问题 I have been trying to figure this out all day and I know it should be able to be done, but being new to iOS development using Objective-C and not Appcelerator I'm having newbie issues. What I am trying to accomplish is to have an embedded view in one of my other views, but to be able to switch which view is embedded through programming. I am using storyboards. When I tried to use the view container it displays the attached view, but I cannot attach multiple views to the container in the

How to add more tabs in tab view controller storyboard application? [duplicate]

旧时模样 提交于 2019-12-20 09:48:54
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Xcode 4.2 Tabbed Application - Adding New Tab view I'm new to iPhone app and I followed following tutorial to develop a tab view application using story board: It's working fine.Thanks to the Author. :) Now, I want to add couple of more tabs to the main view(default, its 2 tabs; I want 3 or 4). How Can I do it? 回答1: Add one view controller (UIViewController) And Add it with your tabBarController in relationship

IBOutlet link to embedded view controller

倾然丶 夕夏残阳落幕 提交于 2019-12-20 09:47:58
问题 I have a complex iPad view that I manage by having several view controllers. I previously (before iOS6/XCode 4.5) did this by allocating my view controllers in code, and hooked up the various views to them though links to the master view. What I would like to do is use the new container views to embed the view controllers in the storyboard file. I don't seem to be able to make an IBOutlet link to the embedded view controller to the master controller. Is it possible to do this? Or to retrieve

ios5 - size of modal view controller with storyboard

和自甴很熟 提交于 2019-12-20 09:37:58
问题 is there any way to resize a View Controller that has been presented modally using a storyboard segue? how do I present another View Controller from this modal view controller with a flip transition? If I define it as Style=Modal, Presentation=Default, Transition=Flip Horizontal it just looks weird (background is white). Thx! 回答1: Yes. In interface builder select the view controller and in the attribute inspector set Size to freeform (from inferred). Then select the view and set its

Xcode 8 hangs / unresponsive when opening storyboard

好久不见. 提交于 2019-12-20 09:12:46
问题 I've recently upgraded to Xcode 8 and updated my project to Swift 3. All worked fine for a little while. Storyboard loading has always been slow (even when still running Xcode 7) and was about the same 'slow' with Xcode 8. I always imagined this is because I'm on a older (late 2011) Macbook Pro. But recently sometimes Xcode would just hang when I tried to open the storyboard. And since yesterday it's ALWAYS 'hanging'. Xcode becomes unresponsive and I have to Force Quit it. In Activity Monitor

Fire a method from a Static Cell in a Table view Controller

不羁岁月 提交于 2019-12-20 08:49:29
问题 In my code i have a table with static cell inside storyboards. I'm trying to fire a method upon clicking the last static cell. What should i write in the code to make this happen. How can i refer static cells inside the code without firing error. 回答1: In the viewController add: @property (nonatomic, weak) IBOutlet UITableViewCell *theStaticCell; Connect that outlet to the cell in the storyboard. Now in tableView:didSelectRowAtIndexPath method: UITableViewCell *theCellClicked = [self.tableView

Login Screen with Storyboarding possible?

南楼画角 提交于 2019-12-20 08:19:22
问题 I am playing around with the new iOS 5 features and trying to rewriting one of my apps as pure iOS 5 app using the new storyboarding feature. To cut a long story short, I have a start screen where the app tries to connect to a server if the user saved some login data, if not, it should ask for them. Here is how I would do it. I create a Viewcontroller which is doing the connection thing in the viewDidLoad method. If there is no login data or the login is not successful, I need a to do a

How do I animate image content in WPF?

痴心易碎 提交于 2019-12-20 07:55:56
问题 I have a really basic user control with a button that has an image. I want to animate the image of the button, by changing it to a different image. <UserControl.Resources> <Image x:Key="GlyphDefault" Source="pack://application:,,,/X;component/images/Glyphs_Default.png" Height="8" Width="8" /> <Image x:Key="GlyphClicked" Source="pack://application:,,,/X;component/images/Glyphs_Click.png" Height="8" Width="8" /> </UserControl.Resources> <Grid> <VisualStateManager.VisualStateGroups>

IBOutlet variables return nil when I try to access them. Error: Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value

為{幸葍}努か 提交于 2019-12-20 07:40:19
问题 I have a UIViewController that implements MGLMapViewDelegate . I'm trying to place a nav bar at the top, with two buttons. I couldn't get my buttons or nav bar visible so I tried using the function view.bringSubviewToFront() within my viewDidLoadFunction() as suggested on this post When I did this, I received the error Error: Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value I don't understand how the IBOutlet variables can ever be nil, I thought they were

Swift 4 Odd unexpected jump back to earlier storyboard

爱⌒轻易说出口 提交于 2019-12-20 06:40:52
问题 I’m very new to Swift and Xcode and I’ve built a simple two storyboard app which has a welcome screen and a button that triggers a seque to second storyboard (for which I have created its own class based on UIVIewController. Second storyboard has a couple of UIPickerView objects a and a couple of UIDatePickerView objects and a button. I have some basic actions under the didSelectRow function. However when I build and run the app I get an odd and seemingly random bevahiour where selecting