storyboard

Known effort to update MGSplitViewController for iOS5 and Storyboards?

。_饼干妹妹 提交于 2019-12-10 20:37:04
问题 I'm working on an iPad app that will need to hide/show the master controller of a split view. Related SO answers note Matt Gemmell's MGSplitViewController: How to hide master view in UiSplitviewcontroller in ipad How do I hide the master part of a UISplitViewController programatically? Integrate MGSplitViewController in Universal App MGSplitViewController using Storyboards MGSplitViewController would be perfect - even providing a way to adjust the ratio of master-to-detail views. Fantastic!

2 storyboards for portrait and landscape

≡放荡痞女 提交于 2019-12-10 19:55:35
问题 is there any possible way to create two storyboards, one portrait and one landscape, and then access them depending on the device orientation? something like: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight) { self.storyboard = (one of the storyboards); } else { self.storyboard (the other); } } this code does not work. is

use prepareForSegue for button

梦想的初衷 提交于 2019-12-10 19:20:40
问题 Hi I create button programmatically and I connect my button to another view, but I got segue problem that I should use prepareForSegue method for storyboard but I don't know how there ar esome sample to the internet but I will get error when I used that sample, would you please help me Thanks in advance! here is my code Creating Button UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom]; button.backgroundColor=[UIColor colorWithRed: 201.0/255.0 green: 201.0/255.0 blue:201.0/255.0

Can't Connect window to IBOutlet with storyboard

倖福魔咒の 提交于 2019-12-10 18:46:49
问题 I'm trying to access the Window in the AppDelegate. If I make a new OSX Cocoa project without storyboards, then the AppDelegate contains a window variable like so class AppDelegate: NSObject, NSApplicationDelegate { @IBOutlet weak var window: NSWindow! I can delete the connection between the outlet and the window and reconnect it over and over again and it works fine. Now if I create a new OSX Cocoa project with storyboards and add the window variable to the AppDelegate and try to control

didSelectViewController method not being called (with storyboard)

巧了我就是萌 提交于 2019-12-10 18:46:13
问题 I have 2 versions of a tabbed ios5 application, one created using a storyboard and one using xib files. The storyboard version does not call the UITabBarControllerDelegate method didSelectViewController (the xib version does). Something is (I think) missing from the storyboard, but I don't know what. Another way of framing the question might be — how can I refer to the UITabBarController object instantiated by the storyboard? Thanks for your help. EDIT: The tab bar controller delegate is set:

UIStoryboard Container Attach IBOutlet To Parent ViewController

 ̄綄美尐妖づ 提交于 2019-12-10 18:13:37
问题 I wanted to use a UITableView which contained static cells with a UITextField inside attached to my LoginViewController . I have added IBOutlets in the header file that correspond to the UITextFields in the storyboard. Unfortunately Xcode does not allow static content inside a UITableView you need to use a UITableViewController . Therefore I split out the UITableView from the storyboard and used a ContainerView to embed a UITableViewController which works well. Attached a screenshot of the

my custom viewcontroller delegate not working

大憨熊 提交于 2019-12-10 18:06:41
问题 I am trying to send a simple string from One viewcontroller to another viewcontroller using delegate but my delegate is not working. I am using storyboard and dont want to use segue to pass data. Here is my simple code ViewControllerA.h #import <UIKit/UIKit.h> @class ViewControllerA; @protocol viewControllerADelegate <NSObject> -(void) addItem: (ViewControllerA *)controller data:(NSString *)item; @end @interface ViewControllerA : UIViewController{ __weak id <viewControllerADelegate> delegate;

StopStoryboard doesn't… stop the BeginStoryboard

老子叫甜甜 提交于 2019-12-10 17:25:01
问题 I have extracted this piece of code from my project, because I was trying to find a mistake I made which keeps my BeginStoryboard from stopping itself. I simplified code as much as possible and still I don't see a problem. What do you think it could be? <Window Width="640" Height="480" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> <StackPanel> <Button Content="Start" Name="Button" Width="200"> <Button.Triggers> <EventTrigger RoutedEvent="Button.Click"> <BeginStoryboard

Convert Storyboard to XIB

荒凉一梦 提交于 2019-12-10 17:13:27
问题 I created an app using the iOS 5 Storyboard feature, and have decided I would like it to also run on iOS 4. How can I convert my Storyboard (Which only contains one ViewController) into an XIB? Also, will ARC compile for iOS 4? 回答1: I don't think there is an automatic way to go from storyboard to xib. i think you will need to make the nibs and copy paste. ARC will run on iOS 4. The compiler inserts the necessary extra code to free memory for you. ARC works from 4.0 on. 来源: https:/

iOS - Some images not showing up in launch screen

随声附和 提交于 2019-12-10 15:56:34
问题 Hi we're having a really frustrating moment with the launch screens (note: NOT launch images). The problem we're having is that some images appear on the launch screen whilst others do not. The images are contained in a UIImageView and have some really simple contraints set up. Here are some screenshots so you understand what we mean: First pic - A really simple avatar image (one color, RBG, Alpha channel) WORKS Second pic - A really simple logotype image (one OR multiple color, RBG, Alpha