コード例 #1
0
        public override NSObject[] ChildViewControllersForPagerTabStripViewController(XLPagerTabStripViewController pagerTabStripViewController)
        {
            var c1 = new ChildViewController();
            var c2 = new ChildViewController();
            var c3 = new ChildViewController();

            c1.View.BackgroundColor = UIColor.Red;
            c2.View.BackgroundColor = UIColor.Yellow;
            c3.View.BackgroundColor = UIColor.Green;

            return new NSObject[] { c1, c2, c3 };
        }
コード例 #2
0
        public override NSObject[] ChildViewControllersForPagerTabStripViewController(XLPagerTabStripViewController pagerTabStripViewController)
        {
            var c1 = new ChildViewController();
            var c2 = new ChildViewController();
            var c3 = new ChildViewController();

            c1.View.BackgroundColor = UIColor.Red;
            c2.View.BackgroundColor = UIColor.Yellow;
            c3.View.BackgroundColor = UIColor.Green;

            return(new NSObject[] { c1, c2, c3 });
        }