Forum Xamarin Xamarin.iOS

iOS outlets not accessible in backing class. *Resolved*

Chris_LamontChris_Lamont USUniversity ✭✭
edited October 2018 in Xamarin.iOS

Resolved. Was trying to reference the outlet from a static method inside the backing class.

iOS randomly stopped making outlets correctly. When I make an outlet it usually looks like:
@property (nonatomic, retain) IBOutlet UILabel *titleLabel;

However when I make them now it looks like @property (weak, nonatomic) IBOutlet UILabel *newLabel;

These outlets have been made on the exact same view.
The designer.cs updates and shows the outlet correctly.
However I can not reference it in the backing class. It does not recognise newLabel at all!

Maybe making the outlet (nonatomic, retain) will fix it, anyone know of a way to choose those options?

Sign In or Register to comment.