PriyankaJ
PriyankaJ

Reputation: 35

Is there any other style presenting an UIAlertView?

I saw one app in which the notification/alert view was coming from the top of the iphone screen with gradient black color.

May I have details about alert/notification styles if any?

Upvotes: 0

Views: 314

Answers (3)

ChintaN -Maddy- Ramani
ChintaN -Maddy- Ramani

Reputation: 5164

you may use this link ... maybe it will help you. one other way is to use UIActionsheet.

http://joris.kluivers.nl/blog/2009/04/23/subclass-uialertview-to-create-a-custom-alert/

Upvotes: 1

Andrea
Andrea

Reputation: 26385

Unfortunately not. And customize the original UIAlertView is a trick, that acts on subviews hierarchies. you can sub class it and change it's background color overriding the drawRect: method and removing the original background with those lines of code

- (void)didAddSubview:(UIView *)subview {
if ([subview isMemberOfClass:[UIImageView class]]) {
    [subview removeFromSuperview];
}
}

But it is a trick and it could be lost in future release of iOS

Upvotes: 0

Nikolai Ruhe
Nikolai Ruhe

Reputation: 81868

There's the UIActionSheet—but it is raises from the bottom.

Upvotes: 0

Related Questions