mtonio91 / AMSmoothAlert

Cool AlertView
MIT License
1.26k stars 158 forks source link

Landscape support? #5

Open flyman27 opened 10 years ago

flyman27 commented 10 years ago

comes in from the top and sideways of course. Any places I can start looking to fix that?

Also I added a dismiss delegate.

mtonio91 commented 10 years ago

I'm not a big fan of landscape mode on iphone, even more for pop ups/alerviews that's why i haven't implemented it but i could make it compatible.

flyman27 commented 10 years ago

Thanks! I have an app that presents a lot of stuff in landscape (movies, etc) and it would take your cool api over the top! Im looking through it now to see where I could add it

mtonio91 commented 10 years ago

If you want to figure it out from yourself, you can have a look to the relative coordinates of the alertview which are based on window frame and not and self.view frame.

And then do a pull request :)

fivecord commented 10 years ago

I could use the landscape-support to, specially for iPad-apps...

fenlandersoftware commented 10 years ago

+1 for iPad / landscape support - anyone have any hack's they can share ?

iJoshy commented 9 years ago

+100 for iPad / landscape support - does anyone have any hack they can share ?

dupuis2387 commented 9 years ago

This worked for me....

in AMSmoothAlertView.m... add

define kCircleViewTag 9999

at the top as a const

at the bottom of

the in i add the tag defined at the top to the circle mask view

//----snipped for brevity ----//

}

P.S. I utterly ditched the background blur view, so this "hack" or "patch" doesnt pay any attention to the blur view/variable.