我需要获取 UILabel、UITextView 等的对象名称。例如:
@property (nonatomic, strong) IBOutlet UITextField *Adress;
...
for (UIView *theObject in [self.view subviews]){
NSString *objName = //theObject name
NSLog(@"name of subview is: %@", objName);
// should be "name of subview is: Adress "
}
有人有想法么?