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
启帆信息
2024-11-19 广告
2024-11-19 广告
启帆信息是英伟达中国区代理商,原厂授权代理,提供全面的软件技术解决方案以及NVIDIA以太网产品、交换机等产品,欢迎前来咨询!...
点击进入详情页
本回答由启帆信息提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询