As said above, you can't directly modify the framework, you have to extend off it with a new class or include the framework to use in your new class and overwrite specific functions in your new class.
For example, - init is always called for a new object, but you can overwrite the init function in your code to extend it to do what you want and then return to it's super (the original init). Think along those lines when trying to modify parts in the framework.
I hope that helps (although my explanation looks like it sucks )
Look into categories or subclassing. As AL05 said, MKAnnotation it is a protocol so if you are including new protocol/delegate methods in your subclass, you'll need to make sure all classes where it is used conform to your (sub)protocol.
Look into categories or subclassing. As AL05 said, MKAnnotation it is a protocol so if you are including new protocol/delegate methods in your subclass, you'll need to make sure all classes where it is used conform to your (sub)protocol.
If you're wanting to run the app on any standard phone, or any phone that can be upgraded (jailbroken or not) then don't attempt to change a system framework.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.