uistoryboard

UISplitViewController and UINavigationController doesn't work properly with multiple storyboards

泪湿孤枕 提交于 2019-12-12 06:36:04
问题 I'm trying (for experiment) to work with multiple storyboards. The first storyboard (starts at startup) contains only one view controller that executes some code and download json data from a website. When finish the download task, the view controller (of first storyboard) set the entry Point of Second storyboard as root view controller after instantiating it. UIStoryboard *mainSB = [UIStoryboard storyboardWithName:@"SecondStoryboard" bundle:[NSBundle mainBundle]]; UITabBarController

iOS MasterDetail app inside TabController - where to start?

我只是一个虾纸丫 提交于 2019-12-12 05:14:27
问题 Really basic question here: I want to build an app that has a bunch of MasterDetail views that can be accessed from a TabView. I'd like to start with the MasterDetail project template, but if I do that and toss a TabController onto the front of the storyboard, I get a crash. 2012-04-08 12:51:21.205 SMToolkit[22630:fb03] -[UISplitViewController topViewController]: unrecognized selector sent to instance 0x82491c0 2012-04-08 12:51:21.208 SMToolkit[22630:fb03] *** Terminating app due to uncaught

Possible to customize font of prompt string in nav bar on IB?

若如初见. 提交于 2019-12-12 04:11:58
问题 Is it possible to customize the prompt string at all? I have hooked up the navigationBarItem to my ViewController and added a string as the "Prompt" via IB. There are no properties following the prompt class that allow me to alter the contents of the string, color, etc etc. I was wondering if anyone knows any other possible work around for this problem? 回答1: It is possible to customize the prompt appearance with one big limitation, the style of the prompt and of the title will always be the

How to configure animated in custom segue in iOS using swift?

混江龙づ霸主 提交于 2019-12-12 03:59:00
问题 I have a created a custom segue like below class DismissSegue: UIStoryboardSegue { override func perform() { sourceController.dismissViewControllerAnimated(true, completion: nil) } } In some scenarios I want to dismiss my currentVC without animation but in some cases with animation. How does it possible? I tried setting up @IBInspectable but no luck it doesn't show up property in storyboard. Any kind of help is appreciated. Thanks. 回答1: A couple of thoughts: If you are determined to use your

How can I update my interface builder project to current constraints?

限于喜欢 提交于 2019-12-12 01:03:51
问题 I have a bunch of constraints set up that work well at run time, but aren't reflected in my storyboard because of small errors in positioning the views. Is there any way I can have my storyboard / xib reset all views to acknowledge the constraints I have set up? If this was already asked, I apologize. I'd expect this has been asked, but my queries aren't returning helpful results. 回答1: There's an option when you click the Resolve AutoLayout Issues tab in Interface Builder called Update Frames

Storyboard, drag link to an IBAction from a container view to the parent

霸气de小男生 提交于 2019-12-11 22:14:56
问题 Here's a trivial VC called Club Club has a function: @implementation Club -(IBAction)clickMe { NSLog(@"Whoa!"); } @end Now regarding ButtonA . Obviously in Storyboard you can drag from ButtonA to the function "clickMe" in "Club". Now. Regarding ButtonB. Is there any way, in Storyboard, to drag from ButtonB , to "clickMe" in "Club"? Perhaps using the mysterious "object" objects, or ... ?? Note that, obviously, you can make a class for the small view, and have a function: @implementation

UIViewImage push to new UIViewController IN STORYBOARD

丶灬走出姿态 提交于 2019-12-11 20:53:48
问题 From questions like this and this, I know how to have a UIViewImage push to a new UIViewController programatically. But how can I do this in completely in Storyboard ? I like Storyboard and would like to not have multiple xib files everywhere. I've already enable User Interaction through Storyboard , but I still can't create a transition... 回答1: Drag UIViewController object onto your Storyboard canvas Select that ViewController and in the top menu bar, click Editor > Embed in > Navigation

Handle screens based on Custom URL Scheme using UIStoryBoard

纵然是瞬间 提交于 2019-12-11 20:29:20
问题 I have two applications named with, SendDataApp ReceiveDataApp This is my StoryBoard of ReceiveDataApp I can able to send data to my receiving app and can handle it by below method, - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options; But, here the problem is i want to show the data which i received from SendDataApp to my DetailViewController of ReceivedDataApp I am trying with below method to handle it, Appdelegate.m - (BOOL

Programming tableviews segue drill down

丶灬走出姿态 提交于 2019-12-11 19:34:06
问题 I am currently trying to convert my apps to Storyboards. My data is currently stored in a plist file and I drill down through my tableviews very easily using the following code in my current didSelectRowAtIndexPath: method: -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSDictionary *dictionary = [self.tableDataSource objectAtIndex:indexPath.row]; NSArray *children = [dictionary objectForKey:@"Children"]; [tableView deselectRowAtIndexPath

iOS 7 XCode 5 Storyboard Layout Example

只愿长相守 提交于 2019-12-11 19:17:26
问题 I'm trying to create a dead simple storyboard app with a layout similar to the following. I've got the list/detail view setup but I can't figure out how to link additional pages. I want the "go" page to be my start page and drive off that. Can someone help me with a dead simple example solution on how you would set this up? I'm trying to use "push" segues. 回答1: Here are different ways to create a segues: 1 - From Control To Controller: 2 - Using Connection Inspector 3 - From View Controller