partial void ViewQuestionsButton_TouchUpInside(UIButton sender) { //create a QuestionsViewController QuestionsViewController QuestionsVC = new QuestionsViewController(); //display QuestionsVC NavigationController.PushViewController(QuestionsVC, true); }
QuestionsViewController vc; //An instance of QuestionsViewController //constructor //QuestionsViewController is passed into tableview public QuestionsTableSource(QuestionsViewController vc_in) { //Json file is deserialized and added it to a list var jsonData = File.ReadAllText(AppDelegate.triviaPathFile); ListofTriviaQuestions = JsonConvert.DeserializeObject <List <TriviaQuestionsRecord> >(jsonData); vc = vc_in; }