iphone – UITableview freeze the app while scrolling – Education Career Blog

hai Guys,
in my app i am using the combination of tabbarcontroller, navigation controller and tableview controller.

The view hierarchy of the app is

  UITabBarController
             |
             |_ UINavigationController
                    |
                    |_ UITableView
                           |
                           |_ UITableView
                                  |
                                  |_ UIViewController

in first tableview every thing works fine. but in second tableview when i try to scroll up/down the application just freeze. some time it get crash. when it crashes it said EXC_BAD_ACCESS. Actually i have customize the content of the cell will background image and icons the text of the label is parsed from the xml and stored in NSMutableArray the array is a property with retain. This bug really make me crazy.

Thanks a lot for your help!!!!

,

I think your problem is in the datas you are putting in the UITableView.

Did you check with some NSLogs whats inside ?

Are you using big images ? or very long text ?

,

most common reason is that the number of times u putting in table is less for eg .if ur array has 10 items and u r returning 11 items than it will crash .plz post the source code of table so that problem can be found.

Leave a Comment