ios - IBOutletCollection for UITextView -


can please tell me steps in interfacebuilder connect set of uitextview objects iboutletcollection? in xib file (say myfile.xib) have row of 8 uitextview objects. in myfile.h file declare iboutletcollection:

@property (nonatomic, retain) iboutletcollection(uitextview) nsarray *textviews; 

now want connect xib uitextview objects iboutletcollection. tried ctrl drag first uitextview in xib fileowner, didn't show me iboutlets. tried ctrl click (right click) on fileowner , popped little black menu. showed textviews outlet collection, tried dragging little circle textviews uitextview objects in xib, didn't anything. searched google find sort of info on this, found statements "connect uitextview iboutletcollection in usual way." don't know "the usual way" is. please help.

are sure were dragging correct "little circle" text views, because works fine me.

another way connect outlet opening assistant editor can see both xib file , controller's .h or .m file. starting no code in controller, select text view , control-drag area under @interface, , should say, "insert outlet or outlet collection". when let go, fill in name, , change "connection" pull-down "outlet" "outlet collection". after first 1 done, control-drag other text views line of code.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -