loading from tableview done
This commit is contained in:
parent
ff9b96d277
commit
71eea899e0
@ -2,38 +2,4 @@
|
|||||||
<Bucket
|
<Bucket
|
||||||
type = "1"
|
type = "1"
|
||||||
version = "2.0">
|
version = "2.0">
|
||||||
<Breakpoints>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "FMC Planner 2/TableViewController.m"
|
|
||||||
timestampString = "480789262.461033"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "13"
|
|
||||||
endingLineNumber = "13"
|
|
||||||
landmarkName = "-viewDidLoad"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "FMC Planner 2/TableViewController.m"
|
|
||||||
timestampString = "480789290.645136"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "86"
|
|
||||||
endingLineNumber = "86"
|
|
||||||
landmarkName = "-tableView:didSelectRowAtIndexPath:"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
</Breakpoints>
|
|
||||||
</Bucket>
|
</Bucket>
|
||||||
|
|||||||
@ -7,10 +7,14 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#import "SharedDeclerations.h"
|
#import "SharedDeclerations.h"
|
||||||
|
#import "ViewController.h"
|
||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
|
@class ViewController;
|
||||||
@interface TableViewController : UITableViewController
|
@interface TableViewController : UITableViewController
|
||||||
|
|
||||||
|
@property(strong, nonatomic) ViewController *main;
|
||||||
|
|
||||||
@property(strong, nonatomic) NSMutableArray *dataSource;
|
@property(strong, nonatomic) NSMutableArray *dataSource;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@ -85,6 +85,14 @@
|
|||||||
|
|
||||||
- (void)tableView:(UITableView *)tableView
|
- (void)tableView:(UITableView *)tableView
|
||||||
didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
|
didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||||
|
[self
|
||||||
|
dismissViewControllerAnimated:YES
|
||||||
|
completion:^(void) {
|
||||||
|
[_main
|
||||||
|
loadSave:[tableView
|
||||||
|
cellForRowAtIndexPath:indexPath]
|
||||||
|
.textLabel.text];
|
||||||
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#import "SharedDeclerations.h"
|
#import "SharedDeclerations.h"
|
||||||
#import "ViewController.h"
|
#import "ViewController.h"
|
||||||
|
#import "ViewControllerServiceMenu.h"
|
||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
@class ViewController;
|
@class ViewController;
|
||||||
|
|||||||
@ -107,12 +107,11 @@
|
|||||||
#warning EXPORT TO PMDG GOES HERE
|
#warning EXPORT TO PMDG GOES HERE
|
||||||
} else if ([((UILabel *)tapReg.view)
|
} else if ([((UILabel *)tapReg.view)
|
||||||
.restorationIdentifier isEqualToString:@"LSKR6"]) {
|
.restorationIdentifier isEqualToString:@"LSKR6"]) {
|
||||||
[self
|
UINavigationController *sm = [self.storyboard
|
||||||
presentViewController:
|
instantiateViewControllerWithIdentifier:@"ServiceMenu"];
|
||||||
[self.storyboard
|
((ViewControllerServiceMenu *)[sm.childViewControllers firstObject])
|
||||||
instantiateViewControllerWithIdentifier:@"ServiceMenu"]
|
.main = _main;
|
||||||
animated:YES
|
[self presentViewController:sm animated:YES completion:nil];
|
||||||
completion:nil];
|
|
||||||
} else {
|
} else {
|
||||||
((UILabel *)tapReg.view).text = _Scratchpad.text;
|
((UILabel *)tapReg.view).text = _Scratchpad.text;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,6 +27,7 @@
|
|||||||
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
|
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
|
||||||
((TableViewController *)[segue destinationViewController]).title =
|
((TableViewController *)[segue destinationViewController]).title =
|
||||||
segue.identifier;
|
segue.identifier;
|
||||||
|
((TableViewController *)[segue destinationViewController]).main = _main;
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user