-3

The calendar displays for iPhone 5 but does not work for iPhone 6.In iPhone 6 the layout is changed this is my code:

 calendar = [[DSLCalendarView alloc]initWithFrame:CGRectMake(10, 64, 320, 320)];

this is image for iPhone 6 its not working This the image for iPhone 5 is working.

enter image description here

Pawan Rai
  • 3,434
  • 4
  • 32
  • 42
  • 1
    Your iPhone 5 screenshot is missing. As a side not, try to always calculate the screen width instead of using "magic numbers" – Islam Nov 30 '15 at 07:34

1 Answers1

0

You need to adopt auto-layout in order to make your Calendar responsive. Also you have fixed width of calendar. Change

CGRectMake(10, 64, 320, 320)

to

CGRectMake(10,64,self.view.frame.width, self.view.frame.height)
Saqib Omer
  • 5,387
  • 7
  • 50
  • 71
  • Still its not working i used this code. please help me more – kirti sharma Nov 30 '15 at 08:09
  • What do you mean by not working? Have you added auto-layout constraints? I cannot give move suggestions based on the information you have provided. – Saqib Omer Nov 30 '15 at 08:30
  • I want to increase the size of line. if u have any suggestions please help me – kirti sharma Nov 30 '15 at 08:35
  • Your question is not relevant to what you need. If you need to customize calendar this link might be helpful for you. http://help.syncfusion.com/ios/sfschedule/appearance-and-styling – Saqib Omer Nov 30 '15 at 08:40