Skip to content

Commit

Permalink
Fixed demo linking issue, calendar memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
devinross committed Dec 3, 2009
1 parent d6df945 commit 75bc317
Show file tree
Hide file tree
Showing 22 changed files with 426 additions and 594 deletions.
33 changes: 4 additions & 29 deletions demo/Classes/AppDelegate.h
@@ -1,35 +1,10 @@
//
// TapkuLibraryDemoAppDelegate.h
// Created by Devin Ross on 7/1/09.
// TapkuLibraryDemo
//
// Created by Devin Ross on 12/2/09.
// Copyright __MyCompanyName__ 2009. All rights reserved.
//
/*
tapku.com || http://github.com/tapku/tapkulibrary/tree/master
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/



@interface AppDelegate : NSObject <UIApplicationDelegate> {

Expand Down
31 changes: 4 additions & 27 deletions demo/Classes/AppDelegate.m
@@ -1,33 +1,10 @@
//
// TapkuLibraryDemoAppDelegate.m
// Created by Devin Ross on 7/1/09.
// TapkuLibraryDemo
//
// Created by Devin Ross on 12/2/09.
// Copyright __MyCompanyName__ 2009. All rights reserved.
//
/*
tapku.com || http://github.com/tapku/tapkulibrary/tree/master
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/

#import "AppDelegate.h"
#import "RootViewController.h"
Expand Down
2 changes: 1 addition & 1 deletion demo/Classes/DemoCalendarMonth.h
Expand Up @@ -6,7 +6,7 @@
// Copyright 2009 Devin Ross. All rights reserved.
//

#import "TapkuLibrary.h"
#import <TapkuLibrary/TapkuLibrary.h>


@interface DemoCalendarMonth : TKCalendarMonthTableViewController {
Expand Down
2 changes: 1 addition & 1 deletion demo/Classes/DemoCalendarMonth.m
Expand Up @@ -20,7 +20,7 @@ - (void) viewDidLoad{
// data source

- (BOOL) calendarMonthView:(TKCalendarMonthView*)monthView markForDay:(NSDate*)date{
NSLog(@"Mark for day: %@",date);
//NSLog(@"Mark for day: %@",date);
return (rand() % 2 == 0) ? YES : NO;
}

Expand Down
2 changes: 1 addition & 1 deletion demo/Classes/EmptyViewController.h
Expand Up @@ -30,7 +30,7 @@
*/


#import "TapkuLibrary.h"
#import <TapkuLibrary/TapkuLibrary.h>

@interface EmptyViewController : UIViewController {

Expand Down
2 changes: 1 addition & 1 deletion demo/Classes/FastTableViewController.h
Expand Up @@ -30,7 +30,7 @@
*/


#import "TapkuLibrary.h"
#import <TapkuLibrary/TapkuLibrary.h>

@interface FastTableViewController : UITableViewController {
NSMutableArray *cells;
Expand Down
2 changes: 1 addition & 1 deletion demo/Classes/GraphController.h
Expand Up @@ -30,7 +30,7 @@
*/


#import "TapkuLibrary.h"
#import <TapkuLibrary/TapkuLibrary.h>

@interface GraphController : TKGraphController {

Expand Down
2 changes: 1 addition & 1 deletion demo/Classes/HUDViewController.h
Expand Up @@ -30,7 +30,7 @@
*/


#import "TapkuLibrary.h"
#import <TapkuLibrary/TapkuLibrary.h>

@interface HUDViewController : UIViewController {
LoadingHUDView *loading;
Expand Down
2 changes: 1 addition & 1 deletion demo/Classes/LabelViewController.h
Expand Up @@ -30,7 +30,7 @@
*/


#import "TapkuLibrary.h"
#import <TapkuLibrary/TapkuLibrary.h>

@interface LabelViewController : UITableViewController {
NSMutableArray *cells;
Expand Down
2 changes: 1 addition & 1 deletion demo/Classes/MapViewController.h
Expand Up @@ -30,7 +30,7 @@
*/


#import "TapkuLibrary.h"
#import <TapkuLibrary/TapkuLibrary.h>


@protocol TKMapViewDelegate;
Expand Down
2 changes: 1 addition & 1 deletion demo/Classes/OverviewController.h
Expand Up @@ -29,7 +29,7 @@
*/

#import "TapkuLibrary.h"
#import <TapkuLibrary/TapkuLibrary.h>

@interface OverviewController : TKOverviewTableViewController {

Expand Down
35 changes: 4 additions & 31 deletions demo/Classes/RootViewController.h
@@ -1,40 +1,13 @@
//
// RootViewController.h
// Created by Devin Ross on 7/1/09.
// TapkuLibraryDemo
//
// Created by Devin Ross on 12/2/09.
// Copyright __MyCompanyName__ 2009. All rights reserved.
//
/*
tapku.com || http://github.com/tapku/tapkulibrary/tree/master
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/

#import "TapkuLibrary.h"

@interface RootViewController : UITableViewController {
//NSMutableArray *titles;
NSMutableArray *data;

}

@end
41 changes: 9 additions & 32 deletions demo/Classes/RootViewController.m
@@ -1,33 +1,10 @@
//
// RootViewController.m
// Created by Devin Ross on 7/1/09.
// TapkuLibraryDemo
//
// Created by Devin Ross on 12/2/09.
// Copyright __MyCompanyName__ 2009. All rights reserved.
//
/*
tapku.com || http://github.com/tapku/tapkulibrary/tree/master
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/

#import "RootViewController.h"
#import "LabelViewController.h"
Expand All @@ -38,12 +15,12 @@
#import "EmptyViewController.h"
#import "GraphController.h"
#import "DemoCalendarMonth.h"
@implementation RootViewController

@implementation RootViewController

- (void)viewDidLoad {
[super viewDidLoad];

self.title = @"Tapku Library";

data = [[NSMutableArray alloc] init];
Expand All @@ -66,7 +43,7 @@ - (void)viewDidLoad {
rows = [NSArray arrayWithObjects:@"Place Pin MapView",@"Loading HUD",nil];
d = [NSDictionary dictionaryWithObjectsAndKeys:rows,@"rows",@"Extra",@"title",nil];
[data addObject:d];

}


Expand Down Expand Up @@ -94,7 +71,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
return cell;



}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

Expand Down Expand Up @@ -125,7 +102,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath

[self.navigationController pushViewController:vc animated:YES];
[vc release];

}

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section{
Expand Down

0 comments on commit 75bc317

Please sign in to comment.