2010. 10. 14. 01:16
How to Adjust “Delete” UIButton for UITableView deletion state 개발 - iPhone/개발 Tip2010. 10. 14. 01:16
How to Adjust “Delete” UIButton for UITableView deletion state
- (void)didTransitionToState:(UITableViewCellStateMask)state
{
[super willTransitionToState:state];
if (state == UITableViewCellStateShowingDeleteConfirmationMask)
{
for (UIView *subview in self.subviews)
{
if ([NSStringFromClass([subview class]) isEqualToString:@"UITableViewCellDeleteConfirmationControl"])
{
UIView *deleteButtonView = (UIView *)[subview.subviews objectAtIndex:0];
CGRect frame = deleteButtonView.frame;
frame.origin.x = {NEW X ORIGIN};
frame.origin.y = {NEW Y ORIGIN};
deleteButtonView.frame = frame;
}
}
}
}
'개발 - iPhone > 개발 Tip' 카테고리의 다른 글
NSStringEncoding UTF8을 웹서버에서 지원못할때 EUC-KR 지정하는 방법 (0) | 2010.11.23 |
---|---|
NSLog 개선 관련 팁들 (0) | 2010.10.13 |
Update Incoming to my Gesture Detection Class (0) | 2010.10.01 |
cocos2d - CCTileMapAtlas | gaps | artifacts | black lines | flicker | v0.99.0rc (0) | 2010.09.28 |
cocos2d - Isometric map tile position, detect edges (0) | 2010.09.28 |