开发者

Custom UITableViewCell multiple sections

开发者 https://www.devze.com 2023-02-05 22:35 出处:网络
As i am newbie to this development, i am requestingyou to give a fast reply for my below requirement.

As i am newbie to this development, i am requesting you to give a fast reply for my below requirement.

My iPhone application is: Requesting data from web page(with php) and showing it in my table. This table contains multiple lines of information: imageView, 3 rows(user name, category, no.of views) in one column, and user email id in next column..

To get this type of tableView, i used custom UITableViewCell reference,NSURLConnection methods, loaded content(multiple records) in the table at-a-time and everything works fine.

But, i would like to change in this design as:

(i) I want to show my tableView with multiple sections..based on category-wise(which is dynamic-not fixed no.of values).

(ii) I want t开发者_Go百科o make category name as section title..

I am hitting my head to get this type of functionality in my app from one week. I referred apple documentation & googled web.but, i was unable to find any resource to match my requirement..

Is this possible?.If you any one of you tried this, kindly suggest me how to proceed further..

Waiting for your valuable response..

Ramya.


(i) - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView

(ii) - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section

0

精彩评论

暂无评论...
验证码 换一张
取 消