Tried to fix travis ci compilation issue.

This commit is contained in:
hackiftekhar
2016-10-24 00:02:55 +05:30
parent bbf4394e70
commit 95e1812def
2 changed files with 33 additions and 1 deletions

View File

@@ -15,4 +15,4 @@ before_install:
- rvm use 2.3.1
- sudo gem install cocoapods -v '1.0.1'
script: xctool -workspace Demo.xcworkspace -scheme DemoObjC -sdk iphonesimulator
script: xcodebuild -workspace Demo.xcworkspace -scheme DemoObjC -sdk iphonesimulator

View File

@@ -24,6 +24,38 @@
return 30;
}
//-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
//{
// return 40;
//}
//
//-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
//{
// return 40;
//}
//
//-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
//{
// UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.frame.size.width, 40)];
// view.backgroundColor = [UIColor colorWithRed:0.9 green:1 blue:1 alpha:1];
//
// UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(20, 5, 280, 30)];
// textField.placeholder = [NSString stringWithFormat:@"Header %ld",(long)section];
// [view addSubview:textField];
// return view;
//}
//
//-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
//{
// UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.frame.size.width, 40)];
// view.backgroundColor = [UIColor colorWithRed:1 green:1 blue:0.9 alpha:1];
//
// UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(20, 5, 280, 30)];
// textField.placeholder = [NSString stringWithFormat:@"Footer %ld",(long)section];
// [view addSubview:textField];
// return view;
//}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *identifier = @"TestCell";