зеркало из https://github.com/xamarin/ios-samples.git
NSZombieApocalypse Sample
- Fix for the Help View, it takes the whole screen. - Buttons are now at the same position than the ones of the previous screen.
This commit is contained in:
Родитель
99eccd1c6d
Коммит
fb55ddda99
|
@ -17,10 +17,10 @@ namespace NSZombieApocalypse
|
|||
|
||||
public HelpView (RectangleF frame): base(frame)
|
||||
{
|
||||
BackgroundColor = UIColor.Clear;
|
||||
BackgroundColor = UIColor.White;
|
||||
Layer.CornerRadius = 8;
|
||||
|
||||
var closeFrame = new RectangleF (20, frame.Size.Height - 140, 80, 80);
|
||||
var closeFrame = new RectangleF (10, frame.Size.Height - 140, 80, 80);
|
||||
var closeView = new SymbolMarkView (closeFrame);
|
||||
closeView.TouchUpInside += async (s, e) => await Hide ();
|
||||
AddSubview (closeView);
|
||||
|
@ -39,7 +39,7 @@ namespace NSZombieApocalypse
|
|||
AddSubview (label);
|
||||
label.AccessibilityTraits = UIAccessibilityTrait.Header;
|
||||
|
||||
var nextFrame = new RectangleF (frame.Size.Width - 100, frame.Size.Height - 140, 80, 80);
|
||||
var nextFrame = new RectangleF (frame.Size.Width - 90, frame.Size.Height - 140, 80, 80);
|
||||
nextButton = new SymbolMarkView (nextFrame);
|
||||
nextButton.TouchUpInside += (s, e) => NextSlide ();
|
||||
AddSubview (nextButton);
|
||||
|
|
|
@ -5,5 +5,8 @@ DESCRIPTION:
|
|||
|
||||
The NSZombieApocalypse is a contrived game that exemplifies how to use the UIAccessibility protocol in order to make an app accessible to VoiceOver users.
|
||||
|
||||
When the zombie meter is full, the app crashes. This is the expected behavior.
|
||||
|
||||
It is also normal that the zombies flicker.
|
||||
|
||||
Ported by GouriKumari
|
Загрузка…
Ссылка в новой задаче