Pages childPageName(UIViewController page) { if (page != null) { if (page.Equals(Controllers [0])) { return(Pages.WeatherDaily); } if (page.Equals(Controllers [1])) { return(Pages.WeatherHourly); } if (page.Equals(Controllers [2])) { return(Pages.WeatherDetails); } } return(Pages.Unknown); }
public YYCommentViewController YYcommentViewController() { YYCommentViewController controller = commentViewController; if (contentController.Equals(controller.associatedObject)) { return(controller); } else { return(null); } }