1

I have installed latest xcode6 GM. I have opened the existing project and changed it to use size class. The problem i am facing is i have table view in which cell height is 50. While i run it different simulator, all have the same output. But when i create new project and all the cell are of same height, but in the existing the project cell height are differed.

How should i adapt the same height for cell using adaptive layout for existing project.

Jayaprakash
  • 1,407
  • 1
  • 9
  • 19
Arasuvel
  • 2,971
  • 1
  • 25
  • 40

2 Answers2

4

In the apps running in the compatibility mode, the size classes will not work.

Once you provide the launching image for iPhone 6 and 6 plus, then the size class will apply for your screen (If you implemented).

Also, you can still submit the apps without launching image for iPhone 6 and 6 plus, so that it will run in compatibility mode. Refer: Can i still publish iOS apps without iPhone 6 launch images (apps that run in scale mode only)?

Hope this helps..

Community
  • 1
  • 1
Jayaprakash
  • 1,407
  • 1
  • 9
  • 19
  • Wow, as an iOS Developer, I just wasted a couple of hours "discovering" this little gem. I think it's completely unintuitive to check off size classes and then not see them! (unless you create the proper launch image). Is this documented anywhere? – Daniel D Oct 10 '14 at 19:23
0

Have you tried

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
      return 50;
}

I believe that's the proper way to set the height to a cell (unless you've got some custom cells in Interface Builder)

Phillip
  • 4,276
  • 7
  • 42
  • 74
  • This doesn't make any change in height of cell for the existing project when changing it to adaptive layout. – Arasuvel Sep 17 '14 at 04:37