public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { Window = new UIWindow (UIScreen.MainScreen.Bounds); var size = new FAViewSize (Window.Bounds.Width-10); var controller = new FAViewController (size.FlowLayout(), size); var nav = new UINavigationController (controller); Window.RootViewController = nav; Window.MakeKeyAndVisible (); return true; }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { Window = new UIWindow(UIScreen.MainScreen.Bounds); var size = new FAViewSize(Window.Bounds.Width - 10); var controller = new FAViewController(size.FlowLayout(), size); var nav = new UINavigationController(controller); Window.RootViewController = nav; Window.MakeKeyAndVisible(); return(true); }
public FAViewController(UICollectionViewFlowLayout layout, FAViewSize size) : base(layout) { _fasize = size; _datasource = FA.Empty.Values(); _searchresult = _datasource; _searchbar = new UISearchBar (); _searchbar.SearchBarStyle = UISearchBarStyle.Prominent; _pinchrecognizer = new UIPinchGestureRecognizer (PinchDetected); var searchdelegate = new UISearchFADelegate(this, _searchbar); _searchbar.Delegate = searchdelegate; }
public FAViewController(UICollectionViewFlowLayout layout, FAViewSize size) : base(layout) { _fasize = size; _datasource = FA.Empty.Values(); _searchresult = _datasource; _searchbar = new UISearchBar(); _searchbar.SearchBarStyle = UISearchBarStyle.Prominent; _pinchrecognizer = new UIPinchGestureRecognizer(PinchDetected); var searchdelegate = new UISearchFADelegate(this, _searchbar); _searchbar.Delegate = searchdelegate; }