Skip to content

Commit

Permalink
TCAM First Commit
Browse files Browse the repository at this point in the history
- Take Pictures
- Apply Filters on Pictures
  • Loading branch information
Mohammad Azam committed Jun 12, 2012
0 parents commit 1b31276
Show file tree
Hide file tree
Showing 21 changed files with 1,252 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
@@ -0,0 +1,10 @@
.DS_Store
*.swp
*~.nib
build/
*.pbxuser
*.perspective
*.perspectivev3
*.mode1v3
*.mode2v3
xcuserdata
355 changes: 355 additions & 0 deletions TCam.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions TCam.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions TCam/AppDelegate.h
@@ -0,0 +1,15 @@
//
// AppDelegate.h
// TCam
//
// Created by Mohammad Azam on 5/27/12.
// Copyright (c) 2012 HighOnCoding. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end
63 changes: 63 additions & 0 deletions TCam/AppDelegate.m
@@ -0,0 +1,63 @@
//
// AppDelegate.m
// TCam
//
// Created by Mohammad Azam on 5/27/12.
// Copyright (c) 2012 HighOnCoding. All rights reserved.
//

#import "AppDelegate.h"

@implementation AppDelegate

@synthesize window = _window;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

[[UINavigationBar appearance] setTintColor:[UIColor blackColor]];

// Override point for customization after application launch.
return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
/*
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
*/
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
/*
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
*/
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
/*
Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
*/
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
/*
Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
*/
}

- (void)applicationWillTerminate:(UIApplication *)application
{
/*
Called when the application is about to terminate.
Save data if appropriate.
See also applicationDidEnterBackground:.
*/
}

@end
21 changes: 21 additions & 0 deletions TCam/Filter.h
@@ -0,0 +1,21 @@
//
// Filter.h
// TCam
//
// Created by Mohammad Azam on 6/7/12.
// Copyright (c) 2012 HighOnCoding. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Filter : NSObject
{

}

-(id) initWithNameAndFilter:(NSString *) theName filter:(CIFilter *) theFilter;

@property (nonatomic,strong) NSString *name;
@property (nonatomic,strong) CIFilter *filter;

@end
25 changes: 25 additions & 0 deletions TCam/Filter.m
@@ -0,0 +1,25 @@
//
// Filter.m
// TCam
//
// Created by Mohammad Azam on 6/7/12.
// Copyright (c) 2012 HighOnCoding. All rights reserved.
//

#import "Filter.h"

@implementation Filter

@synthesize name, filter;

-(id) initWithNameAndFilter:(NSString *)theName filter:(CIFilter *)theFilter
{
self = [super init];

self.name = theName;
self.filter = theFilter;

return self;
}

@end
13 changes: 13 additions & 0 deletions TCam/HomeViewController.h
@@ -0,0 +1,13 @@
//
// HomeViewController.h
// TCam
//
// Created by Mohammad Azam on 5/27/12.
// Copyright (c) 2012 HighOnCoding. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface HomeViewController : UIViewController

@end
60 changes: 60 additions & 0 deletions TCam/HomeViewController.m
@@ -0,0 +1,60 @@
//
// HomeViewController.m
// TCam
//
// Created by Mohammad Azam on 5/27/12.
// Copyright (c) 2012 HighOnCoding. All rights reserved.
//

#import "HomeViewController.h"

@implementation HomeViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}

- (void)didReceiveMemoryWarning
{
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

/*
// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView
{
}
*/

/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad
{
[super viewDidLoad];
}
*/

- (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
42 changes: 42 additions & 0 deletions TCam/TCam-Info.plist
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFiles</key>
<array/>
<key>CFBundleIdentifier</key>
<string>com.highoncoding.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIMainStoryboardFile</key>
<string>MainStoryboard</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
14 changes: 14 additions & 0 deletions TCam/TCam-Prefix.pch
@@ -0,0 +1,14 @@
//
// Prefix header for all source files of the 'TCam' target in the 'TCam' project
//

#import <Availability.h>

#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif

#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
17 changes: 17 additions & 0 deletions TCam/UIImage+Extensions.h
@@ -0,0 +1,17 @@
//
// UIImage-Extensions.h
//
// Created by Hardy Macia on 7/1/09.
// Copyright 2009 Catamount Software. All rights reserved.
//
#import <Foundation/Foundation.h>

@interface UIImage (CS_Extensions)
- (UIImage *)imageAtRect:(CGRect)rect;
- (UIImage *)imageByScalingProportionallyToMinimumSize:(CGSize)targetSize;
- (UIImage *)imageByScalingProportionallyToSize:(CGSize)targetSize;
- (UIImage *)imageByScalingToSize:(CGSize)targetSize;
- (UIImage *)imageRotatedByRadians:(CGFloat)radians;
- (UIImage *)imageRotatedByDegrees:(CGFloat)degrees;

@end;

0 comments on commit 1b31276

Please sign in to comment.