uistoryboard

Tab bar with slide out menu

99封情书 提交于 2019-12-11 03:37:41
问题 RearViewController.m -(IBAction)unwindFromViewController:(UIStoryboardSegue *)segue { if ([segue.identifier isEqualToString:@"unwindToViewController"]) { ViewController *detail = [self.storyboard instantiateViewControllerWithIdentifier:@"ViewController"]; [self presentViewController:detail animated:YES completion:nil]; } } If I click back from my RearViewController the ViewController is not presented instead it just peeps and goes off(again shows RearViewcontroller ). Image2 回答1: I give you a

-[UIView setShowsFPS:]: unrecognized selector error

坚强是说给别人听的谎言 提交于 2019-12-11 03:04:24
问题 I need to open a ViewController when a UIButton was press , for doing that I use the following code : NSString * storyboardName = @"Main"; UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle: nil]; UIViewController * vc = [storyboard instantiateViewControllerWithIdentifier:@"ViewController"]; [self presentViewController:vc animated:YES completion:nil]; when it take the final line [self presentViewController:vc animated:YES completion:nil]; it give me the

Warning when presenting UIActivityViewController

牧云@^-^@ 提交于 2019-12-11 02:59:30
问题 When i present an UIActivityController using the code below i get, it is presented but the console shows " Warning: Attempt to present <UIActivityViewController: 0x7f8788e7aed0> on <MyApp.CustomTableViewController: 0x7f8788e3db60> which is already presenting (null) ". @IBAction func shareImage(sender: AnyObject) { let images: [UIImage] = [image.image!] let activityViewController = UIActivityViewController(activityItems: images, applicationActivities: nil) self.presentViewController

Embedding an existing UINavigationController to new view controllers

橙三吉。 提交于 2019-12-11 02:27:27
问题 Suppose I have a storyboard with a navigation controller and several view controllers. All is well until I try to add a new view controller and would like to associate it with the existing UINavigationController . When I go to Editor>Embed>Navigation Controller, Xcode helpfully creates a new controller, which is precisely what I don't want. When I attempt to drag to create a wireframe, I create a segue relationship, which again is what I don't want. Is there a way to make new view controllers

How to get subviews frames early in initialization process

谁说胖子不能爱 提交于 2019-12-11 02:12:01
问题 I am changing some code from XIBs to storyboard. There seems to be a substantial difference in the timing of setting frame bounds of the subviews of a storyboard scene. A technique this code frequently uses is this: a UIView subview has dimensions defined in the XIB or storyboard file (allowing somebody other than the programmer to modify the UI) The UIViewController has a link to the object as an IBObject UIView * in the UIViewController's - viewWillAppear() , certain calculations are made

iOS Disabling Landscape LaunchScreen.storyboard

余生颓废 提交于 2019-12-11 01:54:38
问题 I have an LaunchScreen.storybaord that shows a logo (textual so it is orientation agnostic). The app starts always in portrait, but it has certain view controllers that allow landscape mode (so making the app portrait only is not an option). What I want is that the launch screen always comes up in portrait. So holding the phone in landscape during app start should result in seeing the logo rotated (as if looking at a view controller that does not support landscape) Is there a way to tell the

How should I chain viewcontrollers in xcode storyboard?

送分小仙女□ 提交于 2019-12-11 01:38:21
问题 I would like to chain view controllers in a xcode storyboard to achieve the following effect: A -> B -> C -> D -> E -> B -> C -> D -> E -> B -> ... where the above letters represent separate view controllers (full sized scenes). I want to have a horizontal slide segue from right to left as I go between views and I do not want or need the state for previous views to be preserved (i.e. no push or modal segue). I do need to transfer some state between views though. Any suggestions on how to best

Base Internationalization and “Could not find a storyboard named […]”

这一生的挚爱 提交于 2019-12-11 01:11:42
问题 I am using iOS 6 and trying to use base internationalization. But when I flip the switch and run, I get a "Could not find a storyboard named […]" exception. I tried removing and adding the storyboard file both from the build phases and from the project itself to no avail. I notice in the build phases, that the storyboard is there but it is red. Is there a trick to get this working? 回答1: Select the red storyboard entry in your project navigation, go to the file inspector use the button beside

Customizable Theme Colour to design Application in ios

时光怂恿深爱的人放手 提交于 2019-12-11 01:04:49
问题 I need to make Application Design that can be customizable according to User's wanted Theme. I should only change colour at one place only and whole application theme should be changed. NOTE: Different Theme Contains Different Theme Colours. What I have did is Make a colour palette like this. In this image, if I change ThemeColor to Green instead of Blue then where ever I have used the ThemeColor , then it should be done Green instead. But I can't able find a way to customise this colours. Or

Is ios7 UITableViewController's Clear on Appearance broken (from Storyboard)?

孤街浪徒 提交于 2019-12-10 18:16:22
问题 Using Storyboards in XCode5 for iOS7, I unchecked the "Clear on Appearance" checkbox for a UITableViewController. Using the version editor, I could see that the actual text in the file reacted accordingly (btw, is there a better way to see "source" of the storyboard?). But when I added -(void) viewDidLoad { [super viewDidLoad]; NSLog(@"clear on appear %d", self.clearsSelectionOnViewWillAppear); } It always showed as 1 ( YES ). Regardless of on or off in the storyboard. To get the desired