I customized UIAlertView (code is mentioned below). It works perfect except if uialertview (custom alert view) is called twice the “if ([subview isKindOfClass:[UIImageView class]])“part becomes failure. what must be the solution ?
I customized UIAlertView (code is mentioned below). It works perfect except if uialertview (custom
Share
Try either of these instead:
You can override drawRect: method. Here’s a tutorial on it:
Subclass UIAlertView to Customize the Look of an Alert
http://joris.kluivers.nl/blog/2009/04/23/subclass-uialertview-to-create-a-custom-alert/
You can instead use an alternative to alert view. Here’s a nice one:
https://github.com/gpambrozio/BlockAlertsAnd-ActionSheets
(I don’t think that overriding show method is the best way to go, but implementing either of the above should be quick and painless.)