devinross / tapkulibrary Goto Github PK
View Code? Open in Web Editor NEWtap + haiku = tapku, a well crafted open source iOS framework
Home Page: http://devinross.com/tapku/documentation
License: MIT License
tap + haiku = tapku, a well crafted open source iOS framework
Home Page: http://devinross.com/tapku/documentation
License: MIT License
Hi, I experience a problem when calling the
(void) bringCoverAtIndexToFront:(int)index animated:(BOOL)animated
function and index is more than 6 covers away from the cover which is currently on the front. So everything everything works fine as long as only six covers need to to be moved/animated. But if it is more, the following stack trace appears. Any idea?
2011-02-06 12:23:14.948 LebRecipes[21238:207] -[NSNull center]: unrecognized selector sent to instance 0x2a46d68
2011-02-06 12:23:14.949 LebRecipes[21238:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull center]: unrecognized selector sent to instance 0x2a46d68'
*** Call stack at first throw:
(
0 CoreFoundation 0x029dcb99 exceptionPreprocess + 185
1 libobjc.A.dylib 0x02b2c40e objc_exception_throw + 47
2 CoreFoundation 0x029de6ab -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x0294e2b6 __forwarding + 966
4 CoreFoundation 0x0294de72 _CF_forwarding_prep_0 + 50
5 LebRecipes 0x0004f942 -[TKCoverflowView(hidden) snapToAlbum] + 107
6 LebRecipes 0x00050985 -[TKCoverflowView bringCoverAtIndexToFront:animated:] + 89
Thx
In some regions Monday should be the first weekday. TKCalendarMonthView no longer supports this, in TKCalendarMonthView.h:
I'm using TKCalendarMonthTableViewController in my app and implementing TKCalendarMonthViewDataSource.
My implementation works fine in December and November but things start to get weird when I switch to October: http://yfrog.com/h8y6hp
And even worse when I get to August: http://yfrog.com/h3vp5p
Finally, when I implement -(NSArray_)calendarMonthView:(TKCalendarMonthView_)monthView marksFromDate:(NSDate_)startDate toDate:(NSDate_)lastDate, and I switch to August, my application simply crashes with the following exception:
Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSMutableArray objectAtIndex:]: index 30 beyond bounds [0 .. 29]'
And when I debug my implementation, when I get to August, startDate/endDate is 08-02-2010/08-31-2010 instead of 07-26-2010/09-05-2010.
By the way, you can get exactly the same symptoms by running universaldemo with week starting on Monday instead of Sunday.
When i try to move the TKCalendarMonthView position, the top label (monthYear gets out of position).
what i do:
inhirit from TKCalendarMonthViewController.
in viewDidLoad:
I love your library, it's amazing! saved me hours!
thanks!
Hello,
Monday is displayed as the first day in a week (this works). But the day numbers are displayed at the wrong weekday when i set this option. e.g. i get:
Monday, 5th of December 2010 (But it should be Monday, 6th of December 2010, because there is no "Monday at the 5th of December 2010, the 5th is actually a Sunday!").
There is something wrong... hope you get this work, because in most countries in europe is the first day in the month a monday.
Thanks a lot.
Kind Regards
Joel
Problem:
TKCalendarDayTimelineView loads for me but am only seeing events on a blank scrollView, no timelineView being displayed.
Workaround:
Found drawRect was not being called when TKTimelineView was first initialized and added to the scrollView. Decided to call "reloadDay" from my VC and found that that line 192 of TKCalendarDayTimelineView still referenced the timelineView with the old "OD" prefix:
Line 192: if (![NSStringFromClass([view class])isEqualToString:@"ODTimelineView"]) {
Changed to "TKTimelineView" and reload now triggers drawRect for my TKTimelineView and the timeLineView displays. LIfe is good.
Thanks Devin for sharing this amazing work.
I'm sorry but I can't find any documentation on how to change the reflection background color of the cover image. Is it possible? If not, can it be set to invisible or just completely disable reflection?
Thank you very much.
If you try to add a TKMapView with a other things that self.view bounds as frame, the TKMapView goes black.
Here is my fix :
Think there is a bug in here, when i try to animate to a index that cover is not centered on the view.
Any idea why?
Thanks for a great library!
Hi,
first of all, congrats on your implementation!
I am experimenting with the TKCalendarMonthView and I would like to report the following. Everything works fine apart from one thing related to the multi-tasking feature introduced in iOS4. Let me explain, suppose that you:
So, I can understand that this may be fixed by introducing a notification such as the "UIApplicationDidBecomeActiveNotification". The only problem is that I cannot find out which date variable (and in which method) I have to update for achieving that.
I have also tried to execute "[self.monthView reload];" during application re-launch (using a notification) but even this did not fix the problem. Though, if you manually move forward-backward into the months using the arrows, the 'today' date is marked correctly.
Any ideas?
Thank you in advance,
Christos
Hi, im trying out the coverflow with 110 images size 575x431 with sizes around 60-120k, and im getting memory warnings on the demo project, shouldnt the deque take care or memory recycling? anyone else with this error?
I'd like to be able to define a custom frame for the graphview, and have it render in that, instead of a full screen landscape view.
TKCalendarMonthView leaks memory because an autoreleased array is retained. A patch to fix the leak: http://gist.github.com/404201
when I choose China for iPhone's current regional setting, only the month name works, but days of the week is still English.
When selecting the date programmatically from a TKCalendarMonthTableViewController subclass, a call such as:
[self.monthView selectDate:self.selectedDate];
does not result in execution entering that subclass's definition of calendarMonthView:didSelectDate:.
Hi, i found this library very useful as i want an calendar view on my iphone app.
In short, i have put the who extracted folder(src and universaldemo) inside my project folder. Following the instruction and it works perfect on my xcode with simulator.
The problem is when i tried to do a deploy run on device (iphone 4.2), the xcode compiler complains about "TapkuLibrary/TapkuLibrary .h no such file or directory". May i get some help on this issues?
Sorry for poor typo and grammar.
Thanks for providing the library,
Sim
I'm able to reproduce on DemoCalendarMonth.m in universaldemo. I've updated the demo with:
- (void) calendarMonthView:(TKCalendarMonthView*)monthView didSelectDate:(NSDate*)d{
NSLog(@"today: %@", [NSDate date]);
NSLog(@"selected: %@",d);
[self.tableView reloadData];
}
When I tap today's tile, I get the following on my console:
2010-12-10 15:44:25.228 unviersaldemo[1081:307] Delegate Range: 2010-11-28 00:00:00 +0000 2011-01-01 00:00:00 +0000 34
2010-12-10 15:44:27.668 unviersaldemo[1081:307] today: 2010-12-10 19:44:27 +0000
2010-12-10 15:44:27.672 unviersaldemo[1081:307] selected: 2010-11-11 00:00:00 +0000
When trying to run the universal demo I get the error
Check dependencies
[BEROR]No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=i386, VALID_ARCHS=armv6 armv7).
All the settings I see have picked Latest iOS 4.2.
Hi! This is an excellent library! You have a couple issues on this component tho.
I have fixed those issues, how can I post it back to merge them with the library?
Hi,
from 'TKCalendarMonthTableViewController' I execute the following lines on resume of app:
[self.monthView reload];
[monthView selectDate:[NSDate date]];
[self.tableView reloadData];
So, if I suspend the app, change system date and return to foreground, the today date is selected with blue color (but not with grey as well); the date prior suspend is colored with grey color.
The correct approach I believe is that the today date should be colored both blue & grey...meaning that it is actually seen with blue color, but when another date is selected, the today date from blue should be colored grey- something that do not happen. The date that is marked with grey color is the one selected prior the suspend.
BR,
C.
Hi, I have updated my tapkulibrary code with the latest ones posted here, and have found the Calendar Month to be not working when the month is set to February, the differenceInDays method is returning one day less than it should, thus crashing when drawing the tiles. I believe it has something to do with the new timeZone data being used in the dates retrieved. I'll roll back my code to the previous one for now
Anyone stopped the calendar for going back?
I'm experiencing issues when using the bringCoverAtIndexToFront method on TKCoverflowView.
Basically, after calling the method, the selected cover does not appear correctly on the front and the coverflow view is left in an inconsistent state, as shown on the screenshot here:
http://img233.imageshack.us/img233/8264/screenshot20110107at142.png
I've been able to reproduce this with the universaldemo running in the iOS simulator.
I just replaced the implementation of the - (void)info
method as follows:
- (void) info{
[coverflow bringCoverAtIndexToFront:0 animated:YES];
}
Run the demo, navigate to covers to the right and then hit the info button. You should get something like what is shown on the screenshot.
I'd love to see the calendar drawing ported to iPad proportions.
Because it loads all picture to coverflow, it maybe crash.
Or we should modify to load few picture once.
When I use TKCoverflowView.bringCoverAtIndexToFront method,
The scroll contentOffset move to wrong position.
I think this better:
- (void) bringCoverAtIndexToFront:(int)index animated:(BOOL)animated{
if(index == currentIndex) return;
currentIndex = index;
[self snapToAlbum];
[self animateToIndex:index animated:animated];
}
Or, Make TKCoverflowView.snapToAlbum method to public method.
Thank you.
All [NSTimeZone timeZoneForSecondsFromGMT:0]; should be replaced with [NSTimeZone systemTimeZone];
When it is not systemTimeZone you have to edit your dates coming out of the UIDatePicker to reflect time zone hour change, and all dates would be displayed a day later if you don't.
Hi, many thanks for the great UI and Utility collection.
I'm trying to use your tools along with ObjectiveFlickr, but as long as I add "-ObjC" and "-all_load" to the list of flags, my app won't compile. If I remove them, I got a message error on a class, which is logical due to the flags missing.
Is there any way to fixe this? I'm pretty new to Objective-C coding.
Many thanks,
Jérémy
Hi, excellent work on this library. We forked it in hopes of creating/contributing a week view of the calendar. We'll plan to use the same design pattern as TKCalendarDayTimelineView, call it TKCalendarWeekTimelineView perhaps. We will start with a five day week view, and add a seven day option. And the events will overlap, and not offset, as in the day view.
Thoughts?
Thanks.
The new tile's target isn't being set when selectDate is given a date with a month different from the current month.
The line:
[newTile setTarget:self action:@selector(tile:)];
should be added to selectDate after newTile has been allocated.
hi,
today I implemented the coverflow to my project! But on double tapping the cover i can't add an different view! Could you give me a short advice how to do it!
especially when I change the cover the detailview should animate back, like it is in ipod coverflow!
Thanks for help!
I'm using TKCalendarMonthView-related classes in an app. When the app starts up, December 26 is highlighted as "today", even though it's currently January 7. The result looks like this: http://dl.dropbox.com/u/14191/CalDemo.png
I put together a minimal test case that demonstrates this behavior. The demo project adds TKCalendarMonthView and related files, and then does just this:
self.calendarView = [[[TKCalendarMonthView alloc] init] autorelease];
[self.calendarView selectDate:[NSDate date]];
[self.view addSubview:self.calendarView];
None of the delegate/data source methods are implemented.
The demo can be found at http://dl.dropbox.com/u/14191/CalDemo.zip
Hi,
I'm getting the
Is anyone else getting this?
Great calendar control otherwise.
I use the month calendar in an iphone app (very handy, thank you!). When this app is run on the ipad in 2x mode, the imageNamedTK (UIImage+TKCategory.m) function gets a scale > 1 from the ipad and returns 2x images. What happens then is that the selection rectangle is drawn too big since it gets the double sized extents from the 2x image. I have worked around this locally by skipping all the 2x logic in imageNamedTK, but I'm sure that is also trying to use those 2x images in places where it works right so that's presumably not a real solution for the library. (By the way, you must put the ipad into 2x mode before displaying the calendar for the first time to see this bug)
Hello,
I added a subview as like you told me yesterday. but if i duoble tap the subview i got an error! Please help me or give me an example:
this is my code:
Thanks, but after I add the subview an then doubletap the cover i got an error!
I dont really know how to handle it!
Hear is my code:
(void) coverflowView:(TKCoverflowView*)coverflowView coverAtIndexWasDoubleTapped:(int)index{
TKCoverflowCoverView *cover = [coverflowView coverAtIndex:index];
subview = [[SomeSubView alloc] init];
if(cover == nil) return;
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:cover cache:YES];
[UIView commitAnimations]; [coverflowView addSubview:subview];
}
When I call [self.monthView selectDate:self.selectedCalendarDate] on TKCalendarMonthView with a date that's not in the current month, the title always shows one month prior to the specified date's month. And if the month is January, the title will display the previous month and year. For example, if I pass in January 2, 2012, the title will show December, 2011 with 2 selected in the tiles.
The odd thing is that the tiles in the calendar view are configured correctly. Just the title is wrong.
Is there a workaround for this?
Thanks,
Brendan
When I display a Graph it's off the Screen by a few pixel like shown in the Screenshot:
http://img715.imageshack.us/i/bildschirmfoto20110203u.png/
I already checked the TKGraphView and the TKGraphController classes to fix this issue, but somehow I couldn't find a solution.
Do you know how to fix this issue?
Thx
First off, thanks for your awesome library. You've done so much for the community. Second, I'm not sure if this is a Bug or Feature Request but images that are taller don't get centered. Screenshot: http://screencast.com/t/lq2Z7vc6nIL
Description:
I was plotting 7 zeros without setting goalValue and goalShown = NO. The fill area is drawn below the x-axis, while the individual points are drawn at the top of the graph with no connecting lines. Also, only the bottom half of the points are drawn.
Screenshot:
http://kyleobrien.net/misc/tapku_graph_bug.png
Repro:
1.) Create a GraphPoint object with value 0.
2.) Set self.graph.goalShown = NO in the TKGraphController subclass.
3.) Run!
Workaround:
Show the goal, but set its value to something high enough that it won't appear on the screen.
Could you add an option to put a text under the cover flow image? This way the user could also see the complete name of the image.
Thx
It seems that the coverflow view in universal demo doesn't flip on a iPhone 4 OS 4.2.1. It scrolls well to the left (and off the screen) but non of the images actually flips over. Is this a bug?
In NSDate+TKCategory.h, under dateInformation, when the NSDateComponents are extracted from the NSDate, the NSSecondCalendarUnit is being neglected. Therefore, TKDateInformation instances will have an invalid seconds member.
Fix: add NSSecondCalendarUnit when components:fromDate is called
Let's say we are displaying the month December 2010. The view contains all days of the this month and additionally the last two days of November 2010 and the first two days of January 2011. If the user selects a day of December the delegate method calendarMonthView:didSelectDate: is called. If the user selects one of the dates from November or January the month view is switched to the appropriate month and the selected date is highlighted. However, it is not possible for the user to actually select the date. It is only possible to select the previous or the next date.
-> If the current month is visualized and I call " [monthView selectDate:[NSDate date]];", then the current day will be highlighted.
-> If the previous or next month (of the current one) is visualized and I call the same method as above, then the month is rolling (up or down) to the current one and the current day is highlighted.
--->BUT - here is the bug!
If I am 2 or 3 months away from the current month and I call the same method as above, the current month is depicted (number of days is updated) BUT the month label is NOT updated.
PS: Very good work by the way !
good luck
Like the three20 framework.
Some screenshots:
http://three20.info/gfx/gallery/facebook/screenshot01.jpeg
http://three20.info/gfx/gallery/ffhound/screenshot04.jpeg
http://three20.info/gfx/gallery/scvngr/screenshot01.jpeg
Thanks for your work!!
Hello, in my opinion there is an issue on the event view, it will draw its Title and Location with only one line of text, regardless of the available space in the balloon.
I have made a patch that will draw the Title word wrapped and after it is done, if there is enough space, will draw the Location also word wrapped.
I have also created properties to change the balloon color and the text color.
Gist with the patches: http://gist.github.com/658059
Regards
Rafael
When you change the data of TKGraphView (by doing [self.graph setGraphWithDataPoints:data]), the old labels at the bottom remain so that the new labels appear on top of the old labels.
There needs to be a clearing of all the bottom labels.
This may not be an issue, but if the user taps on the already selected date (perhaps to deselect it) the dateWasSelected doesn't fire at all. My app is simply using this calendar control to check-off whether an activity was done on a particular date. Thus, the user was like to mark and unmark days in the calendar as a kind of done / undone feature. Currently, given this event isn't firing, the user has to tap another day then tap the previously selected day again.
TKCalendarMonthView sometimes misplaces day markers. This is because the cached day views for the previous month may contain a tag which clashes with the current month.
A patch to fix the issue: http://gist.github.com/404219
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.