UITableViewCell如何加载Subview
1个回答
展开全部
contentViewReturns the content view of of the cell object. (read-only)@property(nonatomic, readonly, retain) UIView *contentViewDiscussionThe content view of a UITableViewCell object is the default superview for content displayed by the cell. 看这句话:If you want to customize cells by simply adding additional views, you should add them to the content view so they will be positioned appropriately as the cell transiti***** into and out of editing mode.所以应该先拿到contentView并保存,然后用这个view来添加subview
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询