I am trying to do a app, but unfortunately it is not passing through all (void) instance methods (i copied the methods from another project)….
and also not showing any error….Can any one tell me know whats going wrong?????
I am building a app which has textfeild with drop down table
These are the methods:
- (void)finishedSearching;
- (void)searchAutocompleteEntriesWithSubstring:(NSString *)substring;
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
#pragma mark UITextFieldDelegate methods
- (BOOL)textFieldShouldReturn:(UITextField *)textField ;
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string ;
#pragma mark UITableViewDelegate methods
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView ;
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger) section ;
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath ;
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
Kindly suggest
To set the delegate properly you need to do followingthings –
confirm to delegate protocol. For e.g. –
YourClass: SomeClass <UITextFieldDelegate>-> this is delegate confirmationSet the delegate, where you are creating control. For e.g. –
UItextField *myTextField = [[UItextField alloc] init];----myTextField.delegate = self;Now you need to provide the definition of required method of that delegate in your class.
Hope this clears.