iphone - Can I separate the delegate logic to one class file only? -


I have many testfields, to use just type "A" / "B" / "C" I have written the textfield representative to check user input, which includes the length and the content but I want to separate the delegate from the class file. How can I do so? Thank you.

Create another object and specify all textfield reps of that object

Assign the use of declaration in assets

then synthasize

textfield1.delegate = newobject; Textfield2.delegate = newobject; Textfield3.delegate = newobject;


Comments