Permalink
Browse files

Updated the project settings and fixed memory leaks

Fixed memory leaks related to:
 - Table footer views
 - Table itself

Removed 1 dead store (a boolean)

Updated the project settings to "xcode 4.2"
  • Loading branch information...
Julioacarrettoni committed Nov 9, 2011
1 parent 956e5cf commit 66833411ec0e9994ab5501eb2ff3517d7d12bb38
@@ -54,7 +54,11 @@ - (id)initWithFrame:(CGRect)frame {
_tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height) style:UITableViewStylePlain];
[_tableView setDelegate:self];
[_tableView setDataSource:self];
_tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 1)];
UIView* footerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 1)];
_tableView.tableFooterView = footerView;
[footerView release];
[_tableView setAutoresizingMask:UIViewAutoresizingFlexibleHeight];
[self.view addSubview:_tableView];
}
@@ -57,14 +57,19 @@ - (id)initWithFrame:(CGRect)frame {
[_tableView setDelegate:self];
[_tableView setDataSource:self];
[_tableView setBackgroundColor:[UIColor clearColor]];
_tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 1)];
UIView* footerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 1)];
_tableView.tableFooterView = footerView;
[footerView release];
[self.view addSubview:_tableView];
UIView* verticalLineView = [[UIView alloc] initWithFrame:CGRectMake(self.view.frame.size.width, -5, 1, self.view.frame.size.height)];
[verticalLineView setAutoresizingMask:UIViewAutoresizingFlexibleHeight];
[verticalLineView setBackgroundColor:[UIColor whiteColor]];
[self.view addSubview:verticalLineView];
[self.view bringSubviewToFront:verticalLineView];
[self.view bringSubviewToFront:verticalLineView];
[verticalLineView release];
}
return self;
@@ -153,6 +158,7 @@ - (void)viewDidUnload {
- (void)dealloc {
[_tableView release];
[super dealloc];
}
@@ -652,9 +652,7 @@ - (void) viewWillAppear:(BOOL)animated {
}
- (void)addViewInSlider:(UIViewController*)controller invokeByController:(UIViewController*)invokeByController isStackStartView:(BOOL)isStackStartView{
BOOL isContentSizeForMainViewSet = FALSE;
if (isStackStartView) {
slideStartPosition = SLIDE_VIEWS_START_X_POS;
viewXPosition = slideStartPosition;
@@ -667,7 +665,6 @@ - (void)addViewInSlider:(UIViewController*)controller invokeByController:(UIView
[[borderViews viewWithTag:2] setHidden:TRUE];
[[borderViews viewWithTag:1] setHidden:TRUE];
[viewControllersStack removeAllObjects];
isContentSizeForMainViewSet = TRUE;
}
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 45;
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
@@ -167,8 +167,11 @@
/* Begin PBXProject section */
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0410;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "StackScrollView" */;
compatibilityVersion = "Xcode 3.1";
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
@@ -227,8 +230,9 @@
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = StackScrollView_Prefix.pch;
GCC_VERSION = com.apple.compilers.llvmgcc42;
INFOPLIST_FILE = "StackScrollView-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
IPHONEOS_DEPLOYMENT_TARGET = 3.2;
PRODUCT_NAME = StackScrollView;
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
};
@@ -241,7 +245,9 @@
COPY_PHASE_STRIP = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = StackScrollView_Prefix.pch;
GCC_VERSION = com.apple.compilers.llvmgcc42;
INFOPLIST_FILE = "StackScrollView-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 3.2;
PRODUCT_NAME = StackScrollView;
VALIDATE_PRODUCT = YES;
};
@@ -255,7 +261,7 @@
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
IPHONEOS_DEPLOYMENT_TARGET = 3.2;
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = 2;
@@ -271,8 +277,8 @@
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 3.2;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
PREBINDING = NO;
PROVISIONING_PROFILE = "";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
SDKROOT = iphoneos;

0 comments on commit 6683341

Please sign in to comment.