ios - Custom Tab Bar Controller Causing Memory Leak? -


hi have been having issues nsstring memory leak in ios app. starting believe leak being caused custom tab bar controller due tab bar being involved within leaks stack trace. unsure of going wrong , appreciate if check custom class? thanks!

here class, .h file has not been modified in anyway!

#import "customtabbarcontroller.h"  @interface customtabbarcontroller ()  @end  @implementation customtabbarcontroller  - (id)initwithnibname:(nsstring *)nibnameornil bundle:(nsbundle *)nibbundleornil {     self = [super initwithnibname:nibnameornil bundle:nibbundleornil];     if (self) {         // custom initialization     }     return self; }  - (void)viewdidload {     [super viewdidload];       uitabbaritem *tabbaritem1 = [self.tabbar.items objectatindex:0];       uitabbaritem *tabbaritem2 = [self.tabbar.items objectatindex:1];       uitabbaritem *tabbaritem3 = [self.tabbar.items objectatindex:2];       uiimage *bg = [uiimage imagenamed:@"tbcb"];       self.tabbar.tintcolor = [uicolor colorwithred:132.0/255.0 green:64.0/255.0 blue:49.0/255.0 alpha:1];       [self.tabbar setbackgroundimage:bg];      tabbaritem1.title = @"breakfast";     tabbaritem2.title = @"lunch";     tabbaritem3.title = @"dinner";        tabbaritem1.image = [[uiimage imagenamed:@"bf"] imagewithrenderingmode:uiimagerenderingmodealwaysoriginal];       tabbaritem1.selectedimage = [[uiimage imagenamed:@"bfs" ] imagewithrenderingmode:uiimagerenderingmodealwaysoriginal];        tabbaritem2.image = [[uiimage imagenamed:@"l"] imagewithrenderingmode:uiimagerenderingmodealwaysoriginal];      tabbaritem2.selectedimage = [[uiimage imagenamed:@"ls" ] imagewithrenderingmode:uiimagerenderingmodealwaysoriginal];        tabbaritem3.image = [[uiimage imagenamed:@"d"] imagewithrenderingmode:uiimagerenderingmodealwaysoriginal];      tabbaritem3.selectedimage = [[uiimage imagenamed:@"ds" ] imagewithrenderingmode:uiimagerenderingmodealwaysoriginal];  }  - (void)didreceivememorywarning {     [super didreceivememorywarning];     // dispose of resources can recreated. }  @end 

below stack trace!

enter image description here


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -