Which class is used to create the clickable sections(with > arrow) and the checkbox list on last shot?
alt text http://developer.apple.com/iphone/library/documentation/uikit/reference/UINavigationController_Class/Art/navigation_interface.jpg
Have a look at the UINavigationController.
To create the list with arrows, use the UITableView and set the Accessory "Disclosure indicator" on the cell (in the Interface builder).
The screenshot is from the Settings application though. If you want to create subpanels for settings, you need to use a different approach (Here is one example)
UITableView (UITableViewController).
The checkmarks and arrows are added by changing the .accessoryType property of the cell. To make the table views clickable, implement the -tableView:didSelectRowAtIndexPath: method in the delegate.
Related
I have a default tableview style with 4 entries and would like to customize it show only 4 large image.
Is possible custom table view or i must use another method?
When you have such a display (a menu like, not a table like) I use simple buttons with the following properties:
Type: Custom
Background: an image in .PNG format since it supports transparency and I can do a nice layout with it.
I either set the Title of the button if it doesn't ruin the design, or I add labels under the buttons to explain what they do. In the TouchUpInside event of the buttons I push the view that I want using a navigation controller.
If you're ONLY using four images, consider using a typical UIViewController and laying out the objects in the nib file.
I want to create a UIViewController with an UITableView on the top and two UIButton on the middle and A UITableView on the bottom different with the other UITableView one the top like below
That looks to me like a single table view, with three sections, assuming that the second image is the first one scrolled up - if it were three separate parts then you wouldn't be able to scroll the top sections off the screen.
You'll need to create your own custom cells for the three sections.
open xcode
create new project or go to your existing project
go to file>new>new file
select UIViewController subclass
give it a name and make sure the bottom line says "Subclass of: UIViewController"
after that click next and create
you will get three new files all named the same but with different extensions
select the one with .xib extension
you will see whats called Interface Builder come up with a view
from here you can drag and drop other views into it (such as a tableview) from the list at the bottom right
I would use one tableView instead of two, and set the tableHeaderView to a view that looks like a cell, and two buttons below. Check the image for reference:
It's easy to set this up on Interface Builder, and then you can use Quartz to get rounded corners. Have a look at this screenshot that I did really quick:
I would like to add a toolbar with a label entitled "Save your search?" on the left and a button "Save" on the right that triggers a specific action when tapped. How could I do that programmatically, especially I want this Toolbar to show up only when a particular View is loaded on a screen but not on every view.
Also, I want the toolbar to have a static image as background. "Save" button will also have a static image for background
Just to check; why do you need to add this toolbar of sorts onto a TableView? Depending on how you've set things up; and specially seeing that you need to conditionally hide/show this toolbar, might be easier to add it outside the tableView (just above it I guess).
Seeing as you need to hide/show this toolbar at will; guess you can simply use a UIView for it and add the UIButtons on top as subviews; --> declare it as a property in the .h file so that it can be freely accessed in the .m file whenever you need to hide / show it.
Did you need help on some specific issue related to this perhaps; or would this serve as a goo enough starting point?
I try to create an UITableView similar to the Standard Contact App, when selecting a contact (i.e. grouped style). But how do I get some controls at the top or at the bottom of the cells, which scroll with the rest? In the Contact App you have at the top the picture together with the name and at the bottom three buttons. Are these just special customized Cells? Or can you have controls directly there?
Thanks for your help!
Regards
Matthias
I played with table header/footer views. You can create them in IB and assign them to
self.table.tableHeaderView = yourHeaderView;
self.table.tableFooterView = yourFooterView;
Needless to say, that you customize them as your wish.
Another option is to customize a table cell view for the section 0 if you have a grouped style table. You can add there a picture and a button, whatever you want.
In both cases all your elements will scroll with the table view.
Is that what you asked for?
When I did this functionality, I used a combination of UIViews and UITableViewCell.
As a header I inserted UIView, and it placed the UIButton (with picture) and UITableViewCell. After laying a transparent UIView and subscribe to UIControlEventTouchUpInside, which highlight the cell ([self.tableHeaderCell setHighlighted:YES];)
I want to add some custom buttons and realize the same effect like the iPhone's home screen. What I can think of is to calculate the position of each button and add them to the view. Are there any other ways to do this? e.g. add buttons to the tableview
Check TTLauncherView from Three20,
I realized the same view of the thumbnails in the photo app (which in principle differs only because of the background color and the rounded effect of the buttons) using a custom cell (with 4 UIButtons inside) in a normal tableview.
In my case, this is because I need to scroll up and down, in your specific case there should be a way to "lock" the table from scrolling. By the way, for this reason, it could be simpler to design the custom view in the interface builder, it is very quick to design such a view, and then create a custom controller to provide simple methods to assign icons and actions to the UIButtons dynamically.
You could also look at the Three20 libraries as already suggested, it is already implemented, but you app will easily be rejected by Apple if you do so.