iPhone static libraries: How to hide instance variable

Posted by Frenzy on Stack Overflow See other posts from Stack Overflow or by Frenzy
Published on 2010-05-26T00:14:28Z Indexed on 2010/05/26 0:21 UTC
Read the original article Hit count: 662

I'm creating a static library to share using the following guide: http://www.amateurinmotion.com/articles/2009/02/08/creating-a-static-library-for-iphone.html

In one of the functions, I return a "SomeUIView" which is a subclass of UIView and is defined in the public header, however I don't want to expose the internal instance variable of SomeUIView in the public header.

I've tried using categories for a private internal header file for SomeUIView, but I keep running into "Duplicate interface declaration for class 'SomeUIView'".

Does anyone know how to do this?

Thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c