1

How to populate view in Xamarinから、一連の文字列を使用してテーブル ビューを設定できましたが、ユーザーが選択した文字列値にアクセスするにはどうすればよいですか? 前の質問では、テーブル ビューを埋めるためにいくつかのメソッドをオーバーライドする必要があったことを理解しています。文字列値にアクセスするには、それを行う必要がありますか? もしそうなら、どのメソッドをオーバーライドする必要がありますか?

4

1 に答える 1

1

私の質問を解決しました。それを理解するのに時間がかかりましたが、実行する必要があるのは次のとおりです。

1. Go to the .xib file in Xcode.
2. Double or triple click the inner cell to get the cell isolated.
3. Connect that cell to the controller file or the .h file in Xcode. 
4. Save. 

1. Then go to Xamarin.
2  Use use the table view object, which in my case is `tableview`
3. Set the object's `Cell` property to the the `NSTextFieldCell` object. `tableview.Cell = yourNSTextfieldObject`
4. To get the string value: `tableview.Cell.StringValue`
于 2013-08-18T21:44:11.553 に答える