I'm working right now at a complex user interface for a game which contains both IB elements and programmatic created elements. My question is about the best practices to be used when creating an interface: i know that i should avoid hard-coding values for the frame of the views but also if i let the app calculate the frames after the screen size the results are not as good as i would hope.
Now i am using a combination of hardcoding and self calculating:
backQuestion = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 760, 400)];
backQuestion.center = CGPointMake(self.view.bounds.size.height/2, self.view.bounds.size.width/2);
questionLabel = [[UILabel alloc]initWithFrame:CGRectMake(backQuestion.frame.origin.x+backQuestion.frame.size.width*0.05, backQuestion.frame.origin.y+backQuestion.frame.size.width*0.02, backQuestion.frame.size.width*0.9, backQuestion.frame.size.height*0.35)];
What are the more experienced developers using when creating interfaces ? Is there any good article i should read ?