Search code examples
xcodexibcallouts

Custom callout View with xip


I'm trying to set a custom callout view with a xib I created however it doesn't show up. When I tap in a pin the app is crashing and show the follow error

enter image description here

It's anyone that can help me? You can find the code here. https://github.com/andreasvas/xcode


Solution

  • In interface builder for your CalloutView.xib;

    • Make sure File's Owner is blank (NSObject). And don't forget to remove outlet references.
    • CalloutViewController is a UIView subclass, So set it for the top most UIView, not the `File's Owner'. And don't forget to re-hook your outlets.