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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -