To check the type of class


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //to check if the first element of this array is a UITextField
  2.  
  3. if ([[array objectAtIndex:0] isKindOfClass:[UITextField class]]) {
  4.  
  5. //code
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.