Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以更改 UITableViewCell 上的附件视图位置/对齐方式(默认为中心对齐)?
不,您不能使用任何苹果提供的 API,但您可以创建自己的视图并将其放置在单元格的右侧。
frame您只需要在创建该对象或按属性时设置该 uiview 对象的框架,如下所示
frame
UIView *viewObject = {[UIView alloc] initWithFrame:CGRectMake(280, 10, 25, 25)];
或者
viewObject.frame = CGRectMake(280, 10, 25, 25)