vicpenap / PrettyKit

PrettyKit for iOS is a small set of new widgets and UIKit subclasses that gives you a deeper UIKit customization. You will be able to change their background color, add gradients, shadows, etc.
http://vicpenap.github.com/PrettyKit
Other
1.22k stars 155 forks source link

Set selectedIndex for SegmentedControll Cell #43

Closed timschroeder closed 11 years ago

timschroeder commented 11 years ago

Hi everyone,

I try to change the selectedIndex by default by [cell.selectedIndex or cell setSelectedIndex:1]

Both ways doesn't work. Has anyone a solution for this problem?

Best regards

Tim

timschroeder commented 11 years ago

Ok, if I set the selectedIndex after prepareForTableView: indexPath: it worked.