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
  3. if ([[array objectAtIndex:0] isKindOfClass:[UITextField class]]) {
  5. //code
  6. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.