uistoryboardsegue

Hide navigation bar, but when I transition to the previous view (popped) it shows the old back button temporarily. Why?

怎甘沉沦 提交于 2019-12-10 01:21:32
问题 I have view controllers in a navigation controller (root: RootViewController , second: ReadingViewController ), but in the second view controller I want to disable the navigation bar for a UIToolBar (as I don't need the title and want more buttons, like in iBooks or the Facebook app). Problem is, when I hide the navigation bar in the second view, it appears randomly for a second again when I pop the view controller (go back). When I pop the view controller the back button appears for a second

ViewController Appears to Transition Twice

ⅰ亾dé卋堺 提交于 2019-12-09 13:49:07
问题 Problem Summary My mainVC --> second VC transtion appears to run twice. However, what's odd is that the second VC's viewDidLoad only runs once. This is the only transition in my project that has this problem. I have researched this and found load-twice issues but none are a match to my transition twice but load once scenario. Common issues, like someone having added two segues in the storyboard, do not appear in my project: In my first/root view controller (called mainVC) I programmatically

No “show” in the segue action list in Xcode 6.1

对着背影说爱祢 提交于 2019-12-09 12:35:43
问题 I'm new to swift and IOS development. system information: Xcode 6.1 Release Notes OS X 10.10.1 My app has two view controllers, ViewA and ViewB, (No navigation controller), and I want to jump to ViewB from ViewA by click a UIButton in ViewA. The ViewA has been set as the initial view controller in the App. By following some online instruction, I pressed ctrl and and drag the UIButton in ViewA to point to ViewB in the storyboard window. However, I got only a incomplete segue list (has only 4

How/whether to make a universal storyboard in Xcode

血红的双手。 提交于 2019-12-09 03:11:10
问题 When creating a storyboard file in Xcode, you must select if it is for iPhone or iPad. This implies one should always put iPhone and iPad UIs into separate storyboards. Is this true? My app has multiple storyboards. While the Main.storyboard files largely differ between iPhone and iPad, other storyboards are nearly identical. The only difference might be segue being a push on iPhone vs popover on iPad, which can be handled programmatically. It seems awfully silly and redundant to make two

ios App - crash on multiple segue at the same time (going to other segue while one is animating)

蓝咒 提交于 2019-12-09 01:28:14
问题 While animation of one segue(like perforrmsegue) is going, if other segue occures (if user press other button at that time) then application is crashing. The same problem for the pop and pushViewController on UINavigationController is solved here. Can we use same trik for segue also or there is other solution. I get the following stack after crash. (Exeption at [NSException initWithCoder:]). 0 CoreFoundation 0x2f9fbf4b __exceptionPreprocess 1 libobjc.A.dylib 0x39d8b6af objc_exception_throw 2

How To Convert A View Controller Animation Transition To A Segue Animation Transition

丶灬走出姿态 提交于 2019-12-09 01:21:22
问题 From what I can gather it is not possible to use a View Controller animation as a Segue transition. Currently I have a set of View Controller animations in an existing project that create animated transitions between View Controllers. For example: Modal Animation .h File: // // MVModalDismissAnimation.h // #import "MVBaseAnimation.h" @interface MVModalAnimation : MVBaseAnimation @end Modal Animation .m File: // // MVModalDismissAnimation.m // #import "MVModalAnimation.h" @implementation

Alternate landscape triggered at unwanted view

主宰稳场 提交于 2019-12-08 12:44:23
问题 I have a view controller that contains an image and a tableview. From this view controller I connected a segue to a landscape view that contains the image in full screen (same idea used when you turn sideways the Stocks app from Apple to see the graph in full screen). This segue is called by the following method: - (void)updateLandscapeView { UIDeviceOrientation deviceOrientation = [UIDevice currentDevice].orientation; if (UIDeviceOrientationIsLandscape(deviceOrientation) &&

Custom Segue Animation showing black screen

守給你的承諾、 提交于 2019-12-08 07:52:20
问题 I am struck with a new problem, on presenting the destinationViewController using custom segue, during transition the source ViewController is changed to black screen, i need the screen to be as it is (my design). UIViewController *sourceViewController = (UIViewController*)[self sourceViewController]; UIViewController *destinationController = (UIViewController*)[self destinationViewController][screenshot][1] CATransition* transition = [CATransition animation]; transition.duration = 0.1;

Conditional Destination View Controller from Sections in UITableView

旧时模样 提交于 2019-12-08 06:30:06
问题 Code in TableView Controller if ([segue.identifier isEqualToString:@"showListFiles"]) { NSIndexPath *ip = [self.tableView indexPathForSelectedRow]; if (ip.section == 0) { NSDictionary *currentBill = [[_response objectForKey:@"facturas_pendientes"] objectAtIndex:ip.row]; DkBPaymentViewController *pvc = [[DkBPaymentViewController alloc] init]; pvc = (DkBPaymentViewController *) segue.destinationViewController; pvc.setUp = currentBill; } else if(ip.section == 1){ DkBBillsFileTableViewController

Pass variable to view controller before viewDidLoad

故事扮演 提交于 2019-12-08 05:52:35
问题 I perform a segue which is defined in the Storyboard to open a new view controller. I need to configure the destination view controller of the segue in a special state where some of it's buttons does not needed to be displayed. I know that I can do this by setting a variable on this controller in my source view controller's -prepareForSegue:sender: . The problem with this is, that firstly it instantiates the controller, so it's -viewDidLoad: will run, then only after can I set anything on it.