Skip to content

Instantly share code, notes, and snippets.

View jamsoft's full-sized avatar
🏠
Working from home

Jammer jamsoft

🏠
Working from home
View GitHub Profile
@jamsoft
jamsoft / BaseViewController.cs
Last active May 8, 2017 12:26 — forked from redent/ParentViewController.Keyboard.cs
Parent view controller to handle keyboard notifications to center views in the screen. UIScrollView related methods moved to an extension class.
using Cirrious.MvvmCross.Touch.Views;
using UIKit;
using CoreGraphics;
using Foundation;
namespace MyApp.Touch.Views
{
public class BaseViewController<TViewModel> : MvxViewController where TViewModel : MyBaseViewModelType
{
#region Fields