viewcontroller - iOS ShareKit Cancel button is not working with Xcode 4.2 -


IOS Sharekit is working with the previous Xcode, but 4.2 is no longer working, when I press the cancel button it goes into this routine.

SHK.m inside

  - (minus) hideCurrentViewControllerAnimated: (bool) animated {if (isDismissingView) return; If (currentView! = Zero) {// Dismiss the modal view if ([currentView parentViewController]! = Void) {self.isDismissingView = YES; [[Release the current Weisser Parent Weektrainer] Model Visual Controller Unlimited: Animated]; } And self.currentView = zero; }   

}

} I stepped the code and hit it just if (isDissmissingView) and it just returned.
So, I manually put the code

  [[View current view Parental View Controller] Model Visual Controller Unlimited: Animated];   

At the top of the routine but it does nothing

I also include some other code for reference

  - (Zero) showViewController: (UIViewController *) vc   

{

  if (rootViewController == zero) {// (that is a warning view or other window Do not) Try to find the root view controller / programmically // Find the top window UIWindow * topWindow = [[UIApplication shared application] keybindo]; If (topWindow.windowLevel! = UIWindowLevelNormal) {NSArray * windows = [[UIApplication shared application] window]; (Top window in windows) {if (topWindow.windowLevel == UIWindowLevelNormal) breaks; }} UIView * rootView = [[Top window subviews] ObjectAutex: 0]; Id nextResponder = [rootView nextResponder]; If ([Next Respondor is KindOfClass: [UIViewController class]]) self.rootViewController = nextResponder; The rest NSAssert (no, @ "ShareKit: can not offer could get a root view controller [[SHK currentHelper] setRootViewController: YOURROOTVIEWCONTROLLER] as a manual by the phone .."); } // is the top view controller to be displayed (so we can add model views to it and that is a hidden) UIViewController * topViewController = [self getTopViewController]; If (topViewController == zero) NSAssert (no, "ShareKit: A view controller is to be displayed"); // If a scene is already being shown, hide it, and try again if (currentView! = Zero) {self.pendingView = vc; [[Release current wizard parent dispenser] Model Visual Controller Permitted: Yes]; Return; } // Wrap in a new controller, not already then ([VC respondsToSelector: @selector (pushViewController: animated :)]) {UINavigationController * New = [[[UINavigationController alloc] initWithRootViewController: VC] autorelease]; If ([Navigation responds cockroach: @sillector (model rendering style)) nav.modalPresentationStyle = [SHK modalPresentationStyle]; If ([Navigation responds to Cockroach: @Sillector (Modal Transitionstyle)] New! Model Transition Style = [SHK Model Transition Style]; Nav.navigationBar.barStyle = nav.toolbar.barStyle = [SHK Barstyle]; [Headline Controller Current Model View Controller: Animated NAV: Yes]; Self.currentView = nav; } // {if someone else newly controller image ([VC respondsToSelector: @selector (modalPresentationStyle)]) vc.modalPresentationStyle = [SHK modalPresentationStyle]; If (([VC Responder Selector: @Selector (Model Transition Style)] vc.modalTransitionStyle = [SHK Model Transition Style]; [Top Visual Controller Current Model View Controller: Animated VC: Yes]; [(UINavigationController *) vc navigationBar] BarStyle = [(UINavigationController * vc Toolbar]. BarStyle = [SHK barStyle]; Self.currentView = vc;} Self.pendingView = null;   

}

    < Li> (empty) hidden visual controller [[Self hidden visual view controls]: Yes];

    < P> This is a known error, which was shown on iOS 5. It has been fixed a long time ago. If you decide to upgrade, be sure to follow carefully and truly, because many things are original shares Kit has changed compared to.

Comments