Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone : form like new contact

I have some questions about the Apple iPhone Contact App. I want to use the same methode to create and modify information.

Here's two pics :

alt text http://grab.by/4ZjQ alt text http://grab.by/4ZjR

So we have the creation and the edition. The form looks like an UITableView with a groupedStyle but I don't know how to re-creat all of this. Have you got an idea or a tutorial that might explain how to do it ?

Thanks a lot !

like image 537
Pierre Avatar asked Jun 17 '10 09:06

Pierre


2 Answers

the top bit is a UIView with a UIImageView and a UITableView, this view is set as the header of the overall UITableView.

As for the editing, you need to swap out the UILabel, with a UITextField, which has the same frame, and font-size. move the content from one view to another.

like image 74
MCannon Avatar answered Oct 22 '22 08:10

MCannon


Create a UIView that is a line, then add it as a subview to the cell

//in cellForRowAtIndexPath
UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(80,0,1,44)];
lineView.backgroundColor = [UIColor lightGreyColor];
[cell addSubview:lineView];
like image 24
Jake Dahl Avatar answered Oct 22 '22 08:10

Jake Dahl