需求: 大大们,请教一下,我使用theos在撰写table view会莫名crash, 但在xcode上不会。虽然我知道xcode有生成dsym可以看crash report。但我始终找不到theos哪裡可以设定产出dsym档,可否给个指点,该如何找到此dsym档~
#import "DeviceInfoTableViewController.h"
@interface DeviceInfoTableViewController ()
@property (nonatomic, strong) NSArray *tableData;
@end
@implementation DeviceInfoTableViewController
{
}
- (void)loadView {
[super loadView];
self.title = @"Table View Controller";
}
- (void)viewDidLoad {
[super viewDidLoad];
// Initialize table data
_tableData = [NSArray arrayWithObjects:@"Egg Benedict", @"Mushroom Risotto", @"Full Breakfast", @"Hamburger", @"Ham and Egg Sandwich", @"Creme Brelee", @"White Chocolate Donut", @"Starbucks Coffee", @"Vegetable Curry", @"Instant Noodle with Egg", @"Noodle with BBQ Pork", @"Japanese Noodle with Pork", @"Green Tea", @"Thai Shrimp Cake", @"Angry Birds Cake", @"Ham and Cheese Panini", nil];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
// NSLog(@"the tableData count: %ld", (unsigned long)_tableData.count);
return [_tableData count];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (!cell) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
NSInteger row = indexPath.row;
NSLog(@"zx the row: %ld", (long)row);
NSString *str = _tableData[indexPath.row];
cell.textLabel.text = str;
return cell;
}
#pragma mark - Table view delegate
// In a xib-based application, navigation from a table can be handled in -tableView:didSelectRowAtIndexPath:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Navigation logic may go here, for example:
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
@end