我有一个logIn故事板绑定了一个SWRevealViewcontroller,它有两个着陆点Storyboard1(sw_front)和Storyboard2(sw_front)。我可以成功地进入Storyboard1和Storyboard2 - 我的问题是我无法访问我的rearViewcontroller(菜单图标),即使我已经设置了代码。以下是访问Storyboard的代码:
SWRevealViewController *revealViewController = self.revealViewController;
if (revealViewController) {
[self.menuButton setTarget:self.revealViewController];
[self.menuButton setAction:@selector(revealToggle:)];
[self.navigationController.navigationBar addGestureRecognizer:self.revealViewController.panGestureRecognizer];
}
在第一个故事板上我的代码访问后方:
from xlrd import open_workbook
book = open_workbook("mydata.xlsx")
sheet = book.sheet_by_index(0) #If your data is on sheet 1
column1 = []
column2 = []
#...
for row in range(1, yourlastrow): #start from 1, to leave out row 0
column1.append(sheet.cell(row, 0)) #extract from first col
column2.append(sheet.cell(row, 1))
#...