Xcode Incompatible pointer to integer conversion returning void from function with result type NSInteger

Why am I getting this warning in Xcode?

enter image description here

+4
source share
1 answer

Xcode expects a return statement at the end of a function

better to do something like this:

NSInteger * myInt = nil;

//your if statement where you changing "myInt" instead of returning 

return myInt

+2
source

Source: https://habr.com/ru/post/1435795/


All Articles