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,4331 gold badge9 silver badges19 bronze badges
asked Sep 16, 2014 at 7:58

2 Answers 2

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..

answered Sep 18, 2014 at 4:12
Sign up to request clarification or add additional context in comments.

1 Comment

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?
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)

answered Sep 16, 2014 at 8:01

1 Comment

This doesn't make any change in height of cell for the existing project when changing it to adaptive layout.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.