Valerio
Valerio

Reputation: 523

Xcode not showing incompatible pointer type

I'm able to call any method with any arguments without having a warning back. For example:

[view addSubview:1]
[view addSubview:[UIImage imageNamed:@""]];

other type of warnings are ok and displayed why isn't Xcode throwing a warning?

NOTE: it should be a project settings or kind of, because the warning is there in other projects

Upvotes: 0

Views: 153

Answers (1)

Valerio
Valerio

Reputation: 523

Here it is the solution for this question:

Build Settings -> Implicit Integer to Pointer Conversions

Take that setting on NO did the trick to have back the warnings

Upvotes: 1

Related Questions