예제 #1
0
        void EmbedPlugInView()
        {
            var builtInPlugInsURL  = NSBundle.MainBundle.BuiltInPluginsUrl;
            var pluginURL          = builtInPlugInsURL.Append("FilterDemoAppExtension.appex", false);
            var appExtensionBundle = NSBundle.FromUrl(pluginURL);
            var storyboard         = UIStoryboard.FromName("MainInterface", appExtensionBundle);

            filterDemoViewController = storyboard.InstantiateInitialViewController() as FilterDemoViewController;

            var view = filterDemoViewController.View;

            if (view == null)
            {
                return;
            }

            AddChildViewController(filterDemoViewController);
            view.Frame = auContainerView.Bounds;

            auContainerView.AddSubview(view);
            filterDemoViewController.DidMoveToParentViewController(this);
        }