Created
May 30, 2013 14:25
-
-
Save AlexTiTanium/5678235 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // OrdersTableView.m | |
| // apptools | |
| // | |
| // Created by Alex on 5/29/13. | |
| // Copyright (c) 2013 YourWebStyle. All rights reserved. | |
| // | |
| #import "OrdersViewController.h" | |
| #import "OrderTableDataSource.h" | |
| #import "ActionMessage.h" | |
| #import "UserInfoMessage.h" | |
| @interface OrdersViewController () | |
| @end | |
| @implementation OrdersViewController | |
| /**------------------------------------------------------------------------------------- | |
| * @name On load calls once | |
| -------------------------------------------------------------------------------------*/ | |
| - (void)viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| // Do any additional setup after loading the view. | |
| [self prepareSender]; | |
| } | |
| /**------------------------------------------------------------------------------------- | |
| * @name Called every time the view appears | |
| -------------------------------------------------------------------------------------*/ | |
| - (void)viewWillAppear:(BOOL)animated | |
| { | |
| [super viewWillAppear:animated]; | |
| // Hide nav top bar | |
| [self.navigationController setNavigationBarHidden:YES animated:animated]; | |
| } | |
| /**------------------------------------------------------------------------------------- | |
| * @name Unload | |
| -------------------------------------------------------------------------------------*/ | |
| - (void)viewDidUnload | |
| { | |
| [self setDataSource:nil]; | |
| [super viewDidUnload]; | |
| } | |
| /**------------------------------------------------------------------------------------- | |
| * @name Unload | |
| -------------------------------------------------------------------------------------*/ | |
| -(void)getOrdersFromServer | |
| { | |
| [self.requestSender send: @[[UserInfoMessage new]] | |
| toAction: ACTION_GET_APPS | |
| andRead: @[@"AppsListMessage"]]; | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment