k06a / ABCalendarPicker

Fully configurable iOS calendar UI component with multiple layouts and smooth animations.
MIT License
710 stars 119 forks source link

Ability to open the Calendar in Week Mode #12

Closed miscampbell closed 11 years ago

miscampbell commented 11 years ago

Hi All

Is it possible to open the Calendar in Week day mode. As when viewing it on an iPhone 4S with the bottom TabBar and NavigationBar the Table View is not visible.

If this is not possible can I please request this as a possible feature in the future ?

Thanks, Michael

k06a commented 11 years ago

Did you try to call method with argument ABCalendarPickerStateWeekdays:

- (void)setState:(ABCalendarPickerState)state animated:(BOOL)animated;

in your viewDidLoad?

miscampbell commented 11 years ago

Thank you very much for getting back to me on this that has fixed the issue. Only thing outstanding for me is to improve the calendar performance on an iPhone 3GS. Do you have any ideas as to how I can do this ?

k06a commented 11 years ago

@miscampbell, this calendar is already optimized for iPhone 3GS and iPhone 4. iPhone 4 is more laggy than iPhone 3GS if we talking about animations, trust me :) The main optimization was not to use UIButton class. Look at UIMyButton class. It moves and scales animated really fast because of no subviews in it...

miscampbell commented 11 years ago

Hi Anton

Thank you very much for getting back to me on this. I am following the steps on the Wiki where I generated all files and copied into the project. Do you recommend including the UIMyButton class also ? Sorry I am just wondering what you recommend to improve it ?

Thanks, Michael

k06a commented 11 years ago

ABCalendarPickerDefaultStyleProvider class uses UIMyButton class, so it will not work without it. You should not copy all source files to your project. You can add ABCalendarPicker project as subproject by dragging xcodeproj in your xcode...