ios - Outlet collections, i want to access the properties(hidden) for my UIimageview -


I can only access the ID of my outlet store and the ID does not have hidden assets

This is my outlet collection

  @property (strong, non-creative) IBOutletCollection (UIImageView) NSArray * heart;   

And this happens when I try to call it, and change it to hide it.

  [self.hearts objectAtIndex: 0] .hidden = YES;   

I can not because objectAtIndex only returns an ID

Thanks for any help

You can try to enumerate objects in the archive, the way you expect (e.g., heartView in self.hearts ) ) or the first cast ObjectAtIndex: 0 and then set the hidden property.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -