日历显示为iPhone 5,但布局发生变化 这为iPhone 6.In iPhone 6不工作是我的代码:布局不工作的iPhone 6
calendar = [[DSLCalendarView alloc]initWithFrame:CGRectMake(10, 64, 320, 320)];
这是iPhone 6图像它不起作用 这适用于iPhone 5的图像正在工作。
日历显示为iPhone 5,但布局发生变化 这为iPhone 6.In iPhone 6不工作是我的代码:布局不工作的iPhone 6
calendar = [[DSLCalendarView alloc]initWithFrame:CGRectMake(10, 64, 320, 320)];
这是iPhone 6图像它不起作用 这适用于iPhone 5的图像正在工作。
你需要为了使您的日历响应采用自动布局。你也有固定的日历宽度。更改
CGRectMake(10, 64, 320, 320)
到
CGRectMake(10,64,self.view.frame.width, self.view.frame.height)
仍不工作,我用这个代码。请帮助我更多 –
不工作是什么意思?你有没有添加自动布局约束?我无法根据您提供的信息提供移动建议。 –
我想增加线的大小。如果你有任何建议,请帮助我 –
你的iPhone 5的屏幕截图不存在。作为一方不尝试总是计算屏幕宽度,而不是使用“幻数” –