Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
実際には、テキストフィールドのカスタムクラスを作成し、デリゲートなどのすべてのものを処理する同じクラスで、他のプロパティも.コントローラーからのみ、そのクラスの単一のメソッドを呼び出す必要があります。
Textfield メソッドを使用できるように、独自のクラスで textfield デリゲートを使用するということですか?
< UITextFieldDelegate > 次のように .h ファイルに追加してみてください。
< UITextFieldDelegate >
@interface YourClass : NSObject <UITextFieldDelegate>
これがあなたが探しているものであることを願っています。