storyboard

Sharing scene between multiple storyboard files. iPhone vs iPad

独自空忆成欢 提交于 2019-12-22 07:50:09
问题 I'm working on a Universal app using storyboarding. I have 2 storyboard files. One for iPhone and one for iPad. I will have a handful of scenes that I would like to share between both and I want to use the storyboard editor to set them up. A common one is a UITableViewController and its prototype cells. I can make it in 1 of the storyboard files but how do I show it in both files without redoing its design? 回答1: I don't think that's currently possible, though it would be cool. You could have

Toolbar incorrectly positioned during push animation with hidesBottomBarWhenPushed

二次信任 提交于 2019-12-22 06:39:08
问题 I have an App using a Tabbar for basic Navigation. From one of the screens of the Tabbar I want to enter another one that shows a toolbar instead of the Tabbar and a back navigation item on the top. What is the best way to do this? If I use "Hide Bottom Bar on Push" (aka hidesBottomBarWhenPushed) and add a Toolbar to the screen I can see an animation removing the Tabbar before the Toolbar is placed at the bottom of the screen. 回答1: Solution for UITableViewController with toolbar (requires

Set UITableView's rowHeight to UITableViewAutomaticDimension in storyboard?

故事扮演 提交于 2019-12-22 05:57:09
问题 When creating an app for iOS 8 in Xcode 6, how do I set my UITableView's rowHeight to UITableViewAutomaticDimension ? In WWDC 2014 Session 226 "What’s New in Table and Collection Views", the speaker says that UITableViewAutomaticDimension is the new default value for programmatically created table views' rowHeight . However, he also mention that at the time of the session this is not the case for table views loaded from a xib/storyboard. Now that Xcode 6 GM is out, how do I set this value in

WPF DataGrid - highlight new rows when inserted into datagrid

北城以北 提交于 2019-12-22 05:51:44
问题 I have a datagrid bound to an ObservableCollection, and what I'd like to do is highlight new rows when they are added to the datagrid (i.e. when a new object is inserted into the ObservableCollection). I'd like to highlight the rows when they are inserted by changing the background colour initially, but then having the colour fade back to normal over time. I've tried a variety of different methods to get it to work but nothing quite works properly. Method 1: I have an event trigger that fires

IndexPath for segue from accessoryButton

倖福魔咒の 提交于 2019-12-22 04:21:39
问题 I am attempting to use a storyboard/segue to handle the transition between a UITableView with both standard transition as well as detail disclosure button. Having read a few different posts on here I have set up my project this way: Tie main segue between UITableViewCell and ViewController Tie secondary segue from parent ViewController to new ViewController Implement accessoryButtonTappedForRowWithIndexPath as follows: -(void)tableView:(UITableView *)tableView

Creating Launch Screen.xib for iOS8 ( … iOS11, Swift 4 and LaunchScreen.storyboard )

倾然丶 夕夏残阳落幕 提交于 2019-12-22 04:19:48
问题 I've just found out that in order to be able to have the description for your app in the app store say "This app is optimized for iPhone 6, and iPhone 6 Plus." you need to use a launch XIB or storyboard file for your launch images (per [Apple][1]). So, I've created a new Launch Screen xib and now I'm a little but since I usually do everything in code and don't use interface builder. I've deleted the default label that is inserted and dropped a UIImageView into the view. Now I'm wondering how

How to resize UINavigationController in a storyboard editor

雨燕双飞 提交于 2019-12-22 04:15:18
问题 When I want resize an UIViewController in a storyboard editor window I do: I put size to "freeForm" in the UIViewController attributes inspector I select the view and resize her with the size inspector after that, the uiViewController is resized in storyboard window. Next, I select the view controller, click on: edit > embeded in> Navigation Controller and the problem is that navigation controller is in full size and not the same size that UIViewController. I don't find how resize this

Storyboard: How do I let Xcode automatically update frames when I change layout constraints?

余生颓废 提交于 2019-12-22 01:38:07
问题 I have seen a WWDC 2014 video (What's new in Interface Builder) where the presenter uses Storyboard and changes the height of a table view cell prototype within a table view controller (at around 7m30s). I see all the subviews of that cell resize as he drags the height-handle on the cell. This is great, because now you can see how your layout constraints behave in different scenarios very quickly. He doesn't explain how he does it. Because when I drag the height-handle of a table view cell

hide elements in xcode storyboard

爱⌒轻易说出口 提交于 2019-12-22 01:33:24
问题 Is there a way to hide elements in storyboard interface? What I am talking about is like in Photoshop how you can hide layers while working. I ask because I have some stacked items and it would be nice to not see everything at once while working sometimes. 回答1: While selecting your view/object, in the right panel click the 'Installed' button. Make you to reenable it when your done! ^ Make sure to select one of the views: 回答2: I also cannot see the 'installed' checkbox (Xcode 6.4), but here is

Login Screen using Storyboard

自作多情 提交于 2019-12-22 01:09:48
问题 I am new to iOS 5 and trying to write my apps as pure iOS 5 app using the new storyboard feature. I have a start screen (Login Screen) so I do not want to use navigationcontroller because i don't need any user to go back for a log-in screen after log-in successfully moreover, i don't need navigationbar because it's affect on the Home Screen Design. So, I need to do a manual segue to the login screen, after checking the username and password for login: If(Login Successful) Navigate to the Home