Zst Internship IOS Code Step2
Here are the method added
- I want to implement a button that used to went back to the main page if the user suddenly do not want to continue ordering the things
- First
- Go to Sections –> ButtonMacro.h
- add #define BACKTOMAINPAGE 13at the end
 
- add 
- then go to Sections –> Buttons –> CreateButtom.m
- add the following code
 
 
- Go to Sections –> ButtonMacro.h
 
- First
| 1 2 3 4 5 6 |  | 
- go to Controller –> 我 –> 应用推荐 –> OrderDetailViewController.m
- and this is create a button on the right top corner and its function is to went back to the mainpage
- add the following code in viewdidloadfunction
 
| 1 2 3 4 5 6 |  | 
- add a new function called gobacktomain- this is a selector that used to find the main viewcontroller and jump to it.
- the code in it is
 
| 1 2 3 4 5 6 7 8 9 10 11 |  |