0
有沒有辦法在自定義方法中獲取或設置標準UITableViewCell的textLabel?對於一個僞代碼實例,有沒有辦法從自定義方法中獲取/設置標準UITableViewCell textLabel?
-(void)getTextLabelOfUITableViewCell
{
UILabel *tempLabel = [[UITableViewCell section:0 row:1] textLabel];
}
-(void)setTextLabelOfUITableViewCell:(UILabel *)data
{
[[UITableViewCell section:0 row:1] textLabel] = data;
}
我試圖與PickerView委託方法綁定這個所以每當我在日期選擇器或選擇器更改值,所選的UITableViewCell將反映這些變化。我不得不創建一個自定義的UITableViewCell。能夠以編程方式使用標準的UITableViewCell樣式會很好。
在此先感謝!
非常好,謝謝! – sonoluminescence