iphone Programming Glossary: subviewadded
resizing a UITableViewCell frame issue http://stackoverflow.com/questions/5996775/resizing-a-uitableviewcell-frame-issue and resize it's height according to the new subview. This is gonna get hairy so here goes In your .h file declare BOOL subviewAdded In your .m file in the init do subviewAdded NO Let's assume that you want the cell's height to be 50 without the subview.. subview. This is gonna get hairy so here goes In your .h file declare BOOL subviewAdded In your .m file in the init do subviewAdded NO Let's assume that you want the cell's height to be 50 without the subview and 100 with the subview. Accordingly your.. method should be CGFloat tableView UITableView tableView heightForRowAtIndexPath NSIndexPath indexPath return subviewAdded 100.0f 50.0f This means that initially since subviewAdded is NO all your cells will have the smaller height. Now to add..
|