Skip to content

Instantly share code, notes, and snippets.

@guntidheerajkumar
Created October 24, 2016 07:07
Show Gist options
  • Save guntidheerajkumar/8f4ca285dd9c27f2b7b88cabf01cee35 to your computer and use it in GitHub Desktop.
Save guntidheerajkumar/8f4ca285dd9c27f2b7b88cabf01cee35 to your computer and use it in GitHub Desktop.
///Showing UIView Animation Slide from Bottom.
var sampleView = new UIView(new CGRect(0, this.View.Bounds.Height, this.View.Bounds.Width, 0));
sampleView.BackgroundColor = UIColor.Brown;
BtnClick.TouchUpInside += (sender, e) => {
UIView.AnimateAsync(0.55f, () => {
sampleView.Frame = new CGRect(0, this.View.Bounds.Height - 150, this.View.Bounds.Width, 150);
this.View.AddSubview(sampleView);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment