I’m trying to call a window using the following code
self.Modality = [[Modalities alloc]initWithNibName:@"Modalities" bundle:nil];
[self presentModalViewController:self.Modality animated:YES];
where modality is object of modalities (class)
I get the following errors
error: object cannot be set – either readonly property or no setter found
error: accessing unknown ‘Modality’ getter method
any suggestion to solve that
Declare you Modality property as
nonatomicretainbut notreadonly.And use below in your .m files