Exemplo n.º 1
0
        public override async void AwakeFromNib()
        {
            base.AwakeFromNib();
			scheduleFetcher = new ScheduleFetcher();
			await scheduleFetcher.FetchClassesAsync();
			tableView.ReloadData();
			// Crypto error inducing? Check in XM 1.13... still crashing
//			tableView.DoubleClick += TableView_DoubleClick;
			// Try this instead.
			// And again avoiding event handlers avoids the crypto native crash. 
			// OK, seems to work best when the Selector for the Action is Obj-C style, 
			// i.e. let it pass one paramter (so selector ends in colon), object sender,
			// and don't Export but rather mark it as an Action
			// Have selector C# method take an IntPtr and convert if need be with:
			// UILabel (or whatever) label = Runtime.GetNSObject<UILabel> (intPtr);
			tableView.Target = this;
			tableView.DoubleAction = new Selector("tableViewDoubleClick:");
        }