Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chhoda

macrumors 6502
Original poster
Oct 25, 2008
285
1
hi all,

I have a iphone app which is table view and a detail view, i converted it to a universal app and my ipad main xib looks like below

UIApplication
UIResponder
MyAppDelegate
UIWindow
UISplitViewController
--UINavigationController
----UINavigationBar
----MyTableViewController
------UINavigationItem

--UINavigationController
----UINavigationBar
----MyDetailViewController
------UINavigationItem

But unfortunately when i run in ipad 4.2 i only see MyDetailViewController. where is list in left side ? my logs indicate that the tableview delegates are called properly

regards
 
Last edited:
Thanks for the reply.

i don't know what does it mean by UISplitViewController properly set up
but when i open the splitviewcontroller i see 2 windows, left one pointing to MyTableViewController.nib and right one to detailViewController.nib.

when i go to UISplitViewController properties, the orientation is by default landscape. when i change it to portrait, it shows me only detailViewController why so ? i also tried in runtime rotating the ipad screen, i did not she both the view controllers !
 
Thanks for the reply.

i don't know what does it mean by UISplitViewController properly set up
but when i open the splitviewcontroller i see 2 windows, left one pointing to MyTableViewController.nib and right one to detailViewController.nib.

when i go to UISplitViewController properties, the orientation is by default landscape. when i change it to portrait, it shows me only detailViewController why so ? i also tried in runtime rotating the ipad screen, i did not she both the view controllers !

Like Olaf said.. This is standard UISplitViewController behaviour.
When you have a splitview, you should add a standard Popover from the upper left corner, or use a library to have a splitviewcontroller like Apple Mail.
 
Thanks,

i figured out that by creating a splitview based app from wizard and studying that. Now that I am able to show splitviewcontroller properly, not what i am stuck with is, in portrait, when i click the bar button, i get a crash, i am sure there is some property in ib set to tell the bar button to show popover with tableview, but am unable to figure out ! does seem to be a written code

can you gentlemen point me in the right direction ?

regards
 
Thanks a lot,

I understand, but it is pretty simple, and i donno what's wrong !
I am just trying to be safe not divulge name, identity etc by posting any code.

Let me explain what do I want.

If I do a splitview application from wizard, it generates a functional code for us. I followed that application and am able to show 2 view controllers in landscape mode , first and second, that part is perfect.

Now when i go to portrait mode, i see the item list bar button on the top, but when i click i get a crash and no log messages !

My question is, where is that code written {probably a call to showViewInPopOver() or something like that !}
or is it hooked up somewhere in IB ! which part of the wizard generated code does that ? I have searched many times, but could not find any ibaction or selector regarding the bar button !

thanks in advance
 
i could fix it, the cause was somewhere else where i was not retaining a memory i should have !
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.