views:

207

answers:

0

Hey, When i debug my application in Simulator-2.2.1 i get the following errors which i surprisingly don't get while debugging in Simulator-3.1.2 :

  • in my code for UITableViewController implementation file i am using the method:

    -(id)initwithStyleUITableViewCellStyle)style reuseIdentifierNSString *)reuseIdentifier

    for which i get the error:syntax error before 'UITableViewCellStyle' if this method is not supported by OS2 then could anyone suggest me an alternative or can i do without it aswell (I am using custom Cell's).

  • I am using a UIScrollView and implementing its delegate methods (viewforzoomingInScrollView, scrollViewDidEndScrolling and scrollviewDidScroll)

    so the problem is that in my scrollViewDidEndScrolling method i am using scrollView.zoomScale which gives me an error:request for member 'zoomScale' in something not a structure or union scrollView is also set as a property

Note:these errors appear only when i debug in Simulator 2.2.1 and working perfectly in simulator 3.1.2. I want my app to be able to run on both the OS's so if someone has a neat solution to either of these issues thn please help me out....