ios: schemes table was being drawn on top of the table border
authorkoda
Sun, 08 Apr 2012 19:06:25 +0200
changeset 6864 6fdd23cdeaeb
parent 6863 4d1ce4b4f7c6
child 6865 fe19af8278e6
ios: schemes table was being drawn on top of the table border
project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
--- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Sun Apr 08 18:46:09 2012 +0200
+++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Sun Apr 08 19:06:25 2012 +0200
@@ -98,11 +98,12 @@
 -(void) viewDidLoad {
     self.sectionsHidden = NO;
 
-    NSInteger verticalOffset = IS_IPAD() ? 45 : 0;
+    NSInteger topOffset = IS_IPAD() ? 45 : 0;
+    NSInteger bottomOffset = IS_IPAD() ? 3 : 0;
     UITableView *aTableView = [[UITableView alloc] initWithFrame:CGRectMake(0,
-                                                                            verticalOffset,
+                                                                            topOffset,
                                                                             self.view.frame.size.width,
-                                                                            self.view.frame.size.height - verticalOffset)
+                                                                            self.view.frame.size.height - topOffset - bottomOffset)
                                                            style:UITableViewStyleGrouped];
     aTableView.delegate = self;
     aTableView.dataSource = self;