Two cells on one row in a UITableView

I am trying to create a grouped UITableView cell, such as a table in user details in a Twitter application (formerly Tweetie application).

This is a cell with two sides, and you can select any of them separately (and the background will turn blue, like a rounded button).

Has anyone done something similar or knew how they did it?

Screenshot from the view (these are the following, tweets, subscribers and favorites cells)

alt text

+5
source share
4 answers

I wanted to do the same in my application, but I also did not know a bit how it was done in the Twitter application.

​​ Twitter, , , (, , .. XD), , , .

, , UITableViewCell (.. ) , (, ..). , , (, touchhesBegan ), (, drawRect).

, , highligthed blue background (, ), , ( UITableViewCell , ).

, . , , , .

+4

... , , .

, UITableViewCell..... UIButtons. - .

clearColor .

, 1 2 .

TableView, , .

^ _ ^

+1

Use two UIButtons in your custom cell to do this.

0
source

you can do whatever you want in the UITableViewCell class. then compose it inside a tableView and create and run people. the borders of the sky are the limits.

0
source

All Articles