开发者

uitableviewcell disclosureindicator accessoryview alignment

开发者 https://www.devze.com 2023-03-05 20:53 出处:网络
Is it开发者_开发技巧 possible to change accessory view position/alignment on UITableViewCell (By default it center align) ?No you cannot by using any apple provided API but you can create your own vie

Is it开发者_开发技巧 possible to change accessory view position/alignment on UITableViewCell (By default it center align) ?


No you cannot by using any apple provided API but you can create your own view and place it at the right side of the cell.

You just need to set the frame of that uiview object while creating that object or by frame property, like this

UIView *viewObject = {[UIView alloc] initWithFrame:CGRectMake(280, 10, 25, 25)];

or

viewObject.frame = CGRectMake(280, 10, 25, 25)
0

精彩评论

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

关注公众号