开发者

UITableview freeze the app while scrolling

开发者 https://www.devze.com 2023-01-20 18:56 出处:网络
hai Guys, in my app i am using the combination of tabbarcontroller, navigation controller and tableview controller.

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
                                  |
                                  |_ UI开发者_开发技巧ViewController

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消