private void ChangeContentTo(AspyViewController _newvc, AspyViewController _oldvc, UIViewAnimationOptions _animationOptions) { this._vcNew = _newvc; this._vcOld = _oldvc; //this._vcOld.View.AddSubview(this._vcNew.View); this._transitionComplete = new UICompletionHandler(this.TransitionComplete); this._animation = new Action(delegate() { //this._vcOld.View.Alpha = 0; //this._vcNew.View.Alpha = 1; }); // Shouldnt need to set frame sizes as these are knowns //_oldVC.View.Frame = _newVC.View.Frame; this._vcOld.WillMoveToParentViewController(null); this._vcNew.WillMoveToParentViewController(this); this.AddChildViewController(this._vcNew); // Let the container perform the transition this.Transition ( _vcOld, _vcNew, this._dblAnimationDuration, _animationOptions, this._animation, this._transitionComplete ); }
private void TransitionComplete(bool finished) { this._vcOld.WillMoveToParentViewController(null); this._vcOld.RemoveFromParentViewController(); this._vcNew.DidMoveToParentViewController(this); //this._vcNew = null; this._vcOld = null; }
private void Initialize() { //base.Initialize (); this.strTextValue = ""; this._viewcontollercontainer = iOSCoreServiceContainer.Resolve <AspyViewContainer>(); this.actHandlePad = new Action <int>(HandlePadPush); // Build our number list items.Add("0"); items.Add("1"); items.Add("2"); items.Add("3"); items.Add("4"); items.Add("5"); items.Add("6"); items.Add("7"); items.Add("8"); items.Add("9"); }