Reputation: 540
I am working on my application, and i am trying to implement a map view with annotations but the problem is its only working on iPhone 4s but not on 5,5s,6 and 6+. I am working on a simulator.
This is the error i am getting:
No visible @interface for 'MKPinAnnotationView' declares the selector 'initWithAnnotation:reuseIdentifier:'
on this line of code :
if (!pinView) {
pinView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"annView"];
}
Can anyone help me please ?
Upvotes: 1
Views: 33
Reputation: 540
I found the solution, it happened to be that this file
'/Users/OBSoft/Library/Developer/Xcode/DerivedData/ModuleCache/23TVEMCQA3T1V/UIKit-2M4VYLEDI34V0.pcm'
had to be deleted to get everything working with the simulator.
Thanks.
Upvotes: 1