dismissViewControllerAnimated bug in ios 8

2014-09-26 Thread Herman Chan
Hi all, My set up is this. 1. present a view controller by calling presentViewController 2. in the presented view controller (modal), I create a UITextView and set it to be first responder when view has appeared. 3. set up the leftbarNavItem to call dismissViewControllerAnimated (at this

Re: ios 8 crashing on _updateInterfaceOrientationFromDeviceOrientation

2014-09-24 Thread Herman Chan
. Open up instruments, choose the zombie template. 5. Do a bunch of stuff in the app until the Zombie dialog shows up. Please let me know if this is *NOT* the way to find zombie in Xcode. Herman On 23 Sep 2014, at 17:19, Jens Alfke wrote: On Sep 23, 2014, at 11:31 AM, Herman Chan herman

Re: crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-23 Thread Herman Chan
, David Duncan wrote: On Sep 22, 2014, at 7:16 PM, Herman Chan herman...@gmail.com wrote: Hi Ben, I have both in my app, both presenting from rootVC and just plain controller. I fish out the rootVC to get rid of warning like this Presenting view controllers on detached view controllers

Re: crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-23 Thread Herman Chan
2014, at 14:04, David Duncan wrote: On Sep 23, 2014, at 10:45 AM, Herman Chan herman...@gmail.com wrote: Hi David, Here is my set up in term of view controllers. - (void) setUpTabbarController { self.tabBarController = [[MyTabbarViewController alloc] init]; ViewController *v1

Re: crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-23 Thread Herman Chan
Hi David, Thanks! I wish I can reproduce this, but that's life. I'll try to get rid of the warning and see if it still crash in the wild. herman On 23 Sep 2014, at 14:25, David Duncan wrote: On Sep 23, 2014, at 11:19 AM, Herman Chan herman...@gmail.com wrote: Hi David, Yes

ios 8 crashing on _updateInterfaceOrientationFromDeviceOrientation

2014-09-23 Thread Herman Chan
Hi all, Another mysterious iOS 8 crash I am getting, here is the crash log. Thread : Crashed: com.apple.main-thread 0 libobjc.A.dylib0x32bfbf46 objc_msgSend + 5 1 UIKit 0x289ba531 -[UIWindow _updateInterfaceOrientationFromDeviceOrientation:] + 152 2

crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-22 Thread Herman Chan
Hi all, Getting a bunch of crash on presentViewController in iOS 8, has anyone run into similar issue? here is the stacks trace. Thread : Crashed: com.apple.main-thread 0 libobjc.A.dylib0x34043f46 objc_msgSend + 5 1 UIKit 0x2a0f2739

Re: crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-22 Thread Herman Chan
(both from rootVC and not), so that's probably not the issue here. Herman On 22 Sep 2014, at 22:14, Ben Kennedy wrote: On 22 Sep 2014, at 6:36 pm, Herman Chan herman...@gmail.com wrote: GlobalSettingsViewController *c = [[GlobalSettingsViewController alloc

Re: Design by contract and cocoa

2014-01-23 Thread Herman Chan
this seems to be the modernized version of it: https://github.com/brynbellomy/ObjC-DesignByContract On 22 Jan 2014, at 12:37, Jens Alfke wrote: On Jan 22, 2014, at 8:03 AM, jonat...@mugginsoft.com wrote: I know there are some macros available, http://www.roard.com/contracts/, but I haven’t