iPad Tutorial for iOS: UISplitView Tutorial

Discussion of the official tutorials published on raywenderlich.com. Please only discuss the official tutorials here - for general questions, use the General Discussion forum instead.

Re: iPad for iPhone Developers 101: UISplitView Tutorial

Postby rwenderlich » Fri Apr 29, 2011 3:09 pm

@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
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
User avatar
rwenderlich
Team Member
Site Admin
 
Posts: 2144
Joined: Thu Dec 23, 2010 4:14 pm
Has thanked: 28 times
Been thanked: 332 times

Re: iPad for iPhone Developers 101: UISplitView Tutorial

Postby maziar » Tue May 10, 2011 9:51 am

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.
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

Postby rwenderlich » Wed May 11, 2011 1:31 pm

@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
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
User avatar
rwenderlich
Team Member
Site Admin
 
Posts: 2144
Joined: Thu Dec 23, 2010 4:14 pm
Has thanked: 28 times
Been thanked: 332 times

Re: iPad for iPhone Developers 101: UISplitView Tutorial

Postby quangas » Thu May 19, 2011 7:13 pm

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.
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

Postby shawngrimes » Fri May 20, 2011 5:39 pm

@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.
-----------
Shawn Grimes
Blog: http://www.shawnsbits.com
Twitter: @shawng
User avatar
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

Postby f4ngy » Wed Jun 08, 2011 2:25 pm

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.
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

Postby Head Overheels » Wed Jun 08, 2011 3:50 pm

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?
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

Postby regularberry » Wed Jun 08, 2011 9:29 pm

f4ngy wrote: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.


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).
User avatar
regularberry
Uber Haxx0r
 
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

Postby f4ngy » Mon Jun 13, 2011 2:06 pm

regularberry wrote:
f4ngy wrote: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.


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

Postby testing05 » Thu Jun 30, 2011 5:12 am

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
testing05
n00b
 
Posts: 3
Joined: Tue May 17, 2011 10:42 am
Has thanked: 0 time
Been thanked: 0 time

PreviousNext

Return to Official Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests