ios - How to forward touch event from UITextField to UICollectionViewController / UITableViewController? -



ios - How to forward touch event from UITextField to UICollectionViewController / UITableViewController? -

i have cell , on uitextfield. textfield stretches all on cell. when press textfield keyboard appears, didselectitematindexpath not called.

how can trigger it? didselectitematindexpath delivers selected cell's indexpath. need that.

personally i'd other way around...

cell.textfield.userinteractionenabled = no;

then in didselectrowatindexpath

mytextfieldcell *cell = [self.tableview cellforrowatindexpath:indexpath]; [cell.textfield becomefirstresponder]; cell.textfield.userinteractionenabled = yes; // code needs indexpath

subscribe uitextfieldtextdidendeditingnotification , set

textfield.userinteractionenabled = no;

when you're done

ios uitableview uitextfield uicollectionview

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -