iPad for iPhone Developers 101: UISplitView Tutorial
Re: iPad for iPhone Developers 101: UISplitView Tutorial
@shravan: In the tutorial, there is no button on the right side (unless you mean the one in the toolbar) so I'm not sure what you mean?
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ray Wenderlich
Blog: http://www.raywenderlich.com
Twitter: http://twitter.com/rwenderlich
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ray Wenderlich
Blog: http://www.raywenderlich.com
Twitter: http://twitter.com/rwenderlich
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

rwenderlich - Site Admin
- Posts: 1780
- Joined: Thu Dec 23, 2010 4:14 pm
- Has thanked: 26 times
- Been thanked: 189 times
Re: iPad for iPhone Developers 101: UISplitView Tutorial
Thank you very much for all your great tutorials, the best that I have found so far!
I have been trying to incorporate your SQLite tutorial into your UISplitView tutorial, but I am not managing to combine the two, since the SQLite tutorial is for the iPhone and the latter on the iPad. I'm having a hard time with getting the selection delegate to work.
Any suggestions, or will you be creating a separate tutorial for populating a split view with SQLite data?
Any help would be greatly appreciated.
Thank you again, Maziar.
I have been trying to incorporate your SQLite tutorial into your UISplitView tutorial, but I am not managing to combine the two, since the SQLite tutorial is for the iPhone and the latter on the iPad. I'm having a hard time with getting the selection delegate to work.
Any suggestions, or will you be creating a separate tutorial for populating a split view with SQLite data?
Any help would be greatly appreciated.
Thank you again, Maziar.
- maziar
- Baby Hacker
- Posts: 5
- Joined: Sun Mar 06, 2011 7:30 pm
- Has thanked: 0 time
- Been thanked: 0 time
Re: iPad for iPhone Developers 101: UISplitView Tutorial
@maziar: I doubt we'll be writing a tutorial on that as it's a very specific topic. But if you could describe your problem a little more maybe we could help?
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ray Wenderlich
Blog: http://www.raywenderlich.com
Twitter: http://twitter.com/rwenderlich
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ray Wenderlich
Blog: http://www.raywenderlich.com
Twitter: http://twitter.com/rwenderlich
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

rwenderlich - Site Admin
- Posts: 1780
- Joined: Thu Dec 23, 2010 4:14 pm
- Has thanked: 26 times
- Been thanked: 189 times
Re: iPad for iPhone Developers 101: UISplitView Tutorial
Thanks for a great tutorial. I ran through it all and works fine but for completeness sake I cannot seem to load the images. I copied them all to the Resources folder but it doesn't seem to be referencing it.
Also I'm trying on the right view controller, if you wanted to create a UITableView there, is it better to create a UITableViewController or use a UINavigationController and stack UITableViews on there? I've been having trouble placing UITableViews on the RightViewController when I'm trying to drill down table views. Trying to replicate the Settings > General on the iPad.
Cheers.
Also I'm trying on the right view controller, if you wanted to create a UITableView there, is it better to create a UITableViewController or use a UINavigationController and stack UITableViews on there? I've been having trouble placing UITableViews on the RightViewController when I'm trying to drill down table views. Trying to replicate the Settings > General on the iPad.
Cheers.
- quangas
- n00b
- Posts: 1
- Joined: Thu May 19, 2011 7:09 pm
- Has thanked: 0 time
- Been thanked: 0 time
Re: iPad for iPhone Developers 101: UISplitView Tutorial
@quangas
Are you sure you have a reference to the detail view controller? Are you able to manipulate other properties of the detail view controller? Such as the title from your split view?
If you are able to manipulate the detail view controller, check to make sure that the images are being included in the build target. They may not be getting included in the package.
Your second question is probably more of one of taste. I personally never use straight TableViewControllers. I almost always use a Navigation Controller or a Straight up UIViewController and then add a UITableView to it.
Are you sure you have a reference to the detail view controller? Are you able to manipulate other properties of the detail view controller? Such as the title from your split view?
If you are able to manipulate the detail view controller, check to make sure that the images are being included in the build target. They may not be getting included in the package.
Your second question is probably more of one of taste. I personally never use straight TableViewControllers. I almost always use a Navigation Controller or a Straight up UIViewController and then add a UITableView to it.
-

shawngrimes - Uber Haxx0r
- Posts: 69
- Joined: Thu Feb 17, 2011 6:14 pm
- Location: Aberdeen, MD
- Has thanked: 0 time
- Been thanked: 0 time
Re: iPad for iPhone Developers 101: UISplitView Tutorial
Hi Ray, thanks for the tutorial
I'm having a bit of a problem with getting the UI elements oriented though. This is a screenshot of what I have in IB and what shows up when I run the app. http://imageshack.us/photo/my-images/68 ... at101.png/ How do you know how to arrange the elements to make them look right when the app runs? I'm not really sure why everything shows up in the wrong places/sizes. 
edit: I downloaded your sourcecode and it looks fine and when I copy & paste the stuff from your xib to mine it looks fine.
edit: I downloaded your sourcecode and it looks fine and when I copy & paste the stuff from your xib to mine it looks fine.
- f4ngy
- n00b
- Posts: 2
- Joined: Wed Jun 08, 2011 2:21 pm
- Has thanked: 0 time
- Been thanked: 0 time
Re: iPad for iPhone Developers 101: UISplitView Tutorial
I have a question about using a navigation controller in the detail (right-hand-side) view. I use Xcode 4.0.2 and iOS SDK 4.3.
In the section titled "Using a UINavigationController Instead" Ray gives explicit code that shows the button properly. In my case works fine until I push a new view controller on the detail view in Portrait mode. At this point, the left popover button disappears and a "back" button appears. When rotating the device to Landscape and back to Portrait everything works again.
I tried deactivating the back button with `self.navigationItem.hidesBackButton = YES;` in the loaded view. This at least prevents the back button from showing up, but it won't show the popover button neither. Until I rotate the device again two times.
How can I prevent the buttons from being messed up after pushing a new detail view on the stack?
In the section titled "Using a UINavigationController Instead" Ray gives explicit code that shows the button properly. In my case works fine until I push a new view controller on the detail view in Portrait mode. At this point, the left popover button disappears and a "back" button appears. When rotating the device to Landscape and back to Portrait everything works again.
I tried deactivating the back button with `self.navigationItem.hidesBackButton = YES;` in the loaded view. This at least prevents the back button from showing up, but it won't show the popover button neither. Until I rotate the device again two times.
How can I prevent the buttons from being messed up after pushing a new detail view on the stack?
- Head Overheels
- n00b
- Posts: 3
- Joined: Wed Jun 08, 2011 3:39 pm
- Has thanked: 0 time
- Been thanked: 0 time
Re: iPad for iPhone Developers 101: UISplitView Tutorial
f4ngy wrote:Hi Ray, thanks for the tutorialI'm having a bit of a problem with getting the UI elements oriented though. This is a screenshot of what I have in IB and what shows up when I run the app. http://imageshack.us/photo/my-images/68 ... at101.png/ How do you know how to arrange the elements to make them look right when the app runs? I'm not really sure why everything shows up in the wrong places/sizes.
edit: I downloaded your sourcecode and it looks fine and when I copy & paste the stuff from your xib to mine it looks fine.
If they look correct in IB, look into their autoresizing options, or tell IB to show you the landscape orientation (assuming you're viewing it in portrait).
-

regularberry - Forum Subject Matter Expert
- Posts: 523
- Joined: Fri Feb 18, 2011 5:13 pm
- Has thanked: 0 time
- Been thanked: 1 time
Re: iPad for iPhone Developers 101: UISplitView Tutorial
regularberry wrote:f4ngy wrote:Hi Ray, thanks for the tutorialI'm having a bit of a problem with getting the UI elements oriented though. This is a screenshot of what I have in IB and what shows up when I run the app. http://imageshack.us/photo/my-images/68 ... at101.png/ How do you know how to arrange the elements to make them look right when the app runs? I'm not really sure why everything shows up in the wrong places/sizes.
edit: I downloaded your sourcecode and it looks fine and when I copy & paste the stuff from your xib to mine it looks fine.
If they look correct in IB, look into their autoresizing options, or tell IB to show you the landscape orientation (assuming you're viewing it in portrait).
D'oh! Yeah, I was arranging them in portrait instead of landscape, I guess that would've done it. Thanks!
- f4ngy
- n00b
- Posts: 2
- Joined: Wed Jun 08, 2011 2:21 pm
- Has thanked: 0 time
- Been thanked: 0 time
Re: iPad for iPhone Developers 101: UISplitView Tutorial
Hello Ray,
Really good tutorials.
From last week I am facing a problem in downloading sample code as you are sharing.
the problem is that the url
http://d1xzuxjlafny7l.cloudfront.net/do ... nsters.zip
did not give any response could you please check for the url why this not gives any response when hit this url.
Thanks,
AJ
Really good tutorials.
From last week I am facing a problem in downloading sample code as you are sharing.
the problem is that the url
http://d1xzuxjlafny7l.cloudfront.net/do ... nsters.zip
did not give any response could you please check for the url why this not gives any response when hit this url.
Thanks,
AJ
- testing05
- n00b
- Posts: 3
- Joined: Tue May 17, 2011 10:42 am
- Has thanked: 0 time
- Been thanked: 0 time
Who is online
Users browsing this forum: No registered users and 8 guests