nicklockwood / iRate

[DEPRECATED]
http://charcoaldesign.co.uk/source/cocoa#irate
Other
4.1k stars 734 forks source link

Alert View Button Order #200

Open calebd opened 9 years ago

calebd commented 9 years ago

I'm not a huge fan of the "remind me" option when asking for reviews, so I always turn it off. That means that the alert view shows with two buttons side by side instead of three buttons stacked vertically. Due to the order the buttons are added, it looks like this:

ios simulator screen shot dec 16 2014 10 47 07 am

It would be great if iRate would put the "confirm" action on the right instead of the left in these cases, as is common for non-destructive alerts in both iOS and OS X.

nicklockwood commented 9 years ago

Hmm, I thought that I was registering "No, Thanks" as the cancel button, so it's curious that it would behave differently from other apps. I'll take a look.

calebd commented 9 years ago

You are, but the buttons are displayed in order they are added from left to right, or in the order they are added from top to bottom. Since you add the "accept" action first, it appears on the left.

nicklockwood commented 9 years ago

In stacked layout, the cancel button always appears at the bottom, regardless of whether you add it first. Seems odd that side-by-side layout works differently.

(Not doubting you, just confused by the inconsistency)