I'm tired of writing basic UIAlertView, i.e.
UIAlertView *alert = [[UIAlertView alloc] initWith...]]
Instead, you can include all of this in a โhelperโ function, where can I return buttonIndex or something like a warning, which usually returns?
For a simple helper function, I think you could combine the parameters for the header, the message, I'm not sure if you can pass delegates to the parameter, though, or lay out the information.
In pseudocode, it could be like this:
someValueOrObject = Print_Alert(Title="", Message="", Delegate="", Bundle="") // etc
Any help on this would be great.
thanks
objective-c iphone uialertview
zardon
source share