-1

I am declaring an action for UIButton in myviewcontroller.h file like this

- (IBAction)loginClicked:(id)sender;

but I can see warning like Pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified). How can I resolve this issue?

thanks

Himanth
  • 2,381
  • 3
  • 28
  • 41

1 Answers1

2

Replace

- (IBAction)loginClicked:(id)sender

With

-(IBAction) loginClicked:(nonnull id)sender

Read more at: https://developer.apple.com/swift/blog/?id=25

Ronak Chaniyara
  • 5,335
  • 3
  • 24
  • 51