-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set currentDate to show selected month calendar #7
Comments
Yes. -Pavel On Sep 13, 2012, at 7:04 PM, avocet [email protected] wrote: Sorry, I don't know how to set currentDate in PMDaysView ? — |
But I can't do it in my codes! |
Looks like another thing which is missing, yes. Will look into this when I have enough time. Thanks. |
Hi [__NSDate monthStartDate]: message sent to deallocated instance what can I do for this... This is my code self.pmCC = [[PMCalendarController alloc] initWithThemeName:@"default"]; |
Hi, Have you tried to run enclosed demo project? Does it work? |
Yes demo is working correctly... |
I call the calender from a UIBarButton is that affect ? |
Not sure. Obviously NSDate object is being released somewhere in an incorrect place, but I don't see anything wrong in your code. |
Ok I will look is there another NSDate object that released.. Thank you so much... |
There is NSDate object that I take the currentDate to use another function. But I dont release any of that object. :( |
Language can affect this error. I am from Türkiye. |
In PMCalendarView.m file in - (void)drawRect:(CGRect)rect function NSDate *dateOnFirst = [_currentDate monthStartDate]; on this row throw this error -[__NSDate monthStartDate]: message sent to deallocated instance 0xacbe060 When I pressed the next or previous month... |
That's weird. currentDate has a strong reference, it shouldn't be released. |
Is there any solution we can do |
To be honest, I have no idea what could be wrong in the code you've wrote. -Pavel On Sep 18, 2012, at 12:58 PM, Kemal Serkan YILDIRIM < Is there any solution we can do — |
Thank you so much |
if Objective-C ARC set to NO, error in - (void)drawRect:(CGRect)rect function NSDate *dateOnFirst = [_currentDate monthStartDate]; on this row throw this error -[__NSDate monthStartDate]: message sent to deallocated instance 0xacbe060 |
ARC is supposed to be turned on. |
[__NSDate numberOfDaysInMonth]: message sent to deallocated instance 0x32072ff0 I try again to add PMCalendar to my project.. I get that message... |
If you find a way to fix that, please make a pull request. |
to solve this problem just replace pmcalendarview.m |
Sorry, I don't know how to set currentDate in PMDaysView ?
[PMCalendarController setCurrentDate: ] is right to set currentDate ?
The text was updated successfully, but these errors were encountered: