iphone dev: UIImageview subclass interface builder - how to call custom initializer

Posted by ninjasmith on Stack Overflow See other posts from Stack Overflow or by ninjasmith
Published on 2010-03-09T09:20:58Z Indexed on 2010/03/09 10:36 UTC
Read the original article Hit count: 685

hi. I messing with iphone developement. I have a uiimageview subclass that I want to use to detect touches. I have sucessfully added to interfacebuilder and I can detect a touch in my UIImageview subclass within my application so all is good on that front. however my UIImageView subclass has a custom initializer which is not called when it is created in interface builder.

if I manually initialize the UIImageview and add it programmatically I think it will work but then I lose the ability to 'see' my positioning in Interface builder.

how can I either

1) 'see' a uiimageview in interface builder that is added in code? (not possible?) 2) call my custom initializer when the subclass is instantiated in interfacebuilder.

thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about interface-builder