views:

38

answers:

0

Hi all,

I'm facing a problem in popping to rootViewController.

On my rootViewController, I'm presenting a modalViewController then dismissing it to push another viewController on self.navigationController. Here, I'm able to see the navigation backbarbutton to be pointing to my rootViewController and loads it properly when it's pressed.

I'm trying to do the same with command popToRootViewController which is resulting in application crash with nothing in console as well as debugger.

I'm doing:

    [self.navigationController popToRootViewControllerAnimated:YES];

I tried making animated:NO too. But didn't help.

EDIT: Console basically shows me a list of pending breakpoints like this:

Attaching to process 9204.

Pending breakpoint 2 - ""IdeaDetailedView.m:29" resolved
Pending breakpoint 3 - ""IdeaDetailedView.m:109" resolved   
Pending breakpoint 4 - ""IdeaDetailedView.m:109" resolved
Pending breakpoint 5 - ""signUp.m:78" resolved
Pending breakpoint 6 - ""signUp.m:84" resolved

And Typing bt in console shows me this:

#0  0x922b4286 in mach_msg_trap ()
#1  0x922bba7c in mach_msg ()
#2  0x30244d62 in CFRunLoopRunSpecific ()
#3  0x30244628 in CFRunLoopRunInMode ()
#4  0x32044c31 in GSEventRunModal ()
#5  0x32044cf6 in GSEventRun ()
#6  0x309021ee in UIApplicationMain ()
#7  0x000022a6 in main (argc=1, argv=0xbfffeeb8) at /July Backup/19 July/5th July/main.m:14

Can anybody please help?

Thanx in advance.