0
我想在表格視圖中的某一行中顯示主要內容的下面和前面的信息,這可能嗎?是否可以在同一行內顯示UITableViewCellStyleValue1和UITableViewCellStyleSubtitle
類似...看截圖。
感謝
我想在表格視圖中的某一行中顯示主要內容的下面和前面的信息,這可能嗎?是否可以在同一行內顯示UITableViewCellStyleValue1和UITableViewCellStyleSubtitle
類似...看截圖。
感謝
做的UITableViewCell的子類,做到這一點,並公開正確的網點。
像這樣的事情
@interface MyCustomUITableViewCell < UITableViewCell
@property (nonatomic, readonly, weak) UILabel *title;
@property (nonatomic, readonly, weak) UILabel *subtitle;
@property (nonatomic, readonly, weak) UILabel *title;
- (id) initWithReuseIdentifier:(NSString*)identifier;
@end
可以通過編程方式創建UI,或者你可以建立對小區的筆尖和連接插座。
注意:任何新的UI應添加到UITableViewCell的contentView屬性。
這裏有幾個類似的問題
非常感謝您的幫助,我將深入探討這一點,感謝您的鏈接。 –
您需要一個自定義單元。 – rmaddy