Permalink
Browse files

Updates.

  • Loading branch information...
1 parent e0661d3 commit 9de80d610fc702ef9df5dc12a347ec0c78ab420c @arturgrigor committed Feb 12, 2012
View
304 AGMedallionView Demo/AGMedallionView Demo.xcodeproj/project.pbxproj
@@ -0,0 +1,304 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ FE7FA03714E834C800B31FD8 /* sample.png in Resources */ = {isa = PBXBuildFile; fileRef = FE7FA03614E834C800B31FD8 /* sample.png */; };
+ FE8B044B14E83146007F6625 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FE8B044A14E83146007F6625 /* UIKit.framework */; };
+ FE8B044D14E83146007F6625 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FE8B044C14E83146007F6625 /* Foundation.framework */; };
+ FE8B044F14E83146007F6625 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FE8B044E14E83146007F6625 /* CoreGraphics.framework */; };
+ FE8B045514E83146007F6625 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = FE8B045314E83146007F6625 /* InfoPlist.strings */; };
+ FE8B045714E83146007F6625 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = FE8B045614E83146007F6625 /* main.m */; };
+ FE8B045B14E83146007F6625 /* AGAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = FE8B045A14E83146007F6625 /* AGAppDelegate.m */; };
+ FE8B045E14E83146007F6625 /* AGViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = FE8B045D14E83146007F6625 /* AGViewController.m */; };
+ FE8B046114E83146007F6625 /* AGViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = FE8B045F14E83146007F6625 /* AGViewController.xib */; };
+ FE8B046B14E83176007F6625 /* AGMedallionView.m in Sources */ = {isa = PBXBuildFile; fileRef = FE8B046914E83176007F6625 /* AGMedallionView.m */; };
+ FE8B046C14E83176007F6625 /* medallionShineMask.png in Resources */ = {isa = PBXBuildFile; fileRef = FE8B046A14E83176007F6625 /* medallionShineMask.png */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ FE7FA03614E834C800B31FD8 /* sample.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = sample.png; sourceTree = "<group>"; };
+ FE8B044614E83146007F6625 /* AGMedallionView Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "AGMedallionView Demo.app"; sourceTree = BUILT_PRODUCTS_DIR; };
+ FE8B044A14E83146007F6625 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+ FE8B044C14E83146007F6625 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ FE8B044E14E83146007F6625 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ FE8B045214E83146007F6625 /* AGMedallionView Demo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "AGMedallionView Demo-Info.plist"; sourceTree = "<group>"; };
+ FE8B045414E83146007F6625 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ FE8B045614E83146007F6625 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ FE8B045814E83146007F6625 /* AGMedallionView Demo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "AGMedallionView Demo-Prefix.pch"; sourceTree = "<group>"; };
+ FE8B045914E83146007F6625 /* AGAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AGAppDelegate.h; sourceTree = "<group>"; };
+ FE8B045A14E83146007F6625 /* AGAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AGAppDelegate.m; sourceTree = "<group>"; };
+ FE8B045C14E83146007F6625 /* AGViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AGViewController.h; sourceTree = "<group>"; };
+ FE8B045D14E83146007F6625 /* AGViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AGViewController.m; sourceTree = "<group>"; };
+ FE8B046014E83146007F6625 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/AGViewController.xib; sourceTree = "<group>"; };
+ FE8B046814E83176007F6625 /* AGMedallionView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AGMedallionView.h; sourceTree = "<group>"; };
+ FE8B046914E83176007F6625 /* AGMedallionView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AGMedallionView.m; sourceTree = "<group>"; };
+ FE8B046A14E83176007F6625 /* medallionShineMask.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = medallionShineMask.png; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ FE8B044314E83146007F6625 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ FE8B044B14E83146007F6625 /* UIKit.framework in Frameworks */,
+ FE8B044D14E83146007F6625 /* Foundation.framework in Frameworks */,
+ FE8B044F14E83146007F6625 /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ FE8B043B14E83145007F6625 = {
+ isa = PBXGroup;
+ children = (
+ FE8B046714E83176007F6625 /* Classes */,
+ FE8B045014E83146007F6625 /* AGMedallionView Demo */,
+ FE8B044914E83146007F6625 /* Frameworks */,
+ FE8B044714E83146007F6625 /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ FE8B044714E83146007F6625 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ FE8B044614E83146007F6625 /* AGMedallionView Demo.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ FE8B044914E83146007F6625 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ FE8B044A14E83146007F6625 /* UIKit.framework */,
+ FE8B044C14E83146007F6625 /* Foundation.framework */,
+ FE8B044E14E83146007F6625 /* CoreGraphics.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ FE8B045014E83146007F6625 /* AGMedallionView Demo */ = {
+ isa = PBXGroup;
+ children = (
+ FE8B045914E83146007F6625 /* AGAppDelegate.h */,
+ FE8B045A14E83146007F6625 /* AGAppDelegate.m */,
+ FE8B045C14E83146007F6625 /* AGViewController.h */,
+ FE8B045D14E83146007F6625 /* AGViewController.m */,
+ FE8B045F14E83146007F6625 /* AGViewController.xib */,
+ FE8B045114E83146007F6625 /* Supporting Files */,
+ );
+ path = "AGMedallionView Demo";
+ sourceTree = "<group>";
+ };
+ FE8B045114E83146007F6625 /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ FE8B045214E83146007F6625 /* AGMedallionView Demo-Info.plist */,
+ FE8B045314E83146007F6625 /* InfoPlist.strings */,
+ FE8B045614E83146007F6625 /* main.m */,
+ FE8B045814E83146007F6625 /* AGMedallionView Demo-Prefix.pch */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+ FE8B046714E83176007F6625 /* Classes */ = {
+ isa = PBXGroup;
+ children = (
+ FE7FA03614E834C800B31FD8 /* sample.png */,
+ FE8B046814E83176007F6625 /* AGMedallionView.h */,
+ FE8B046914E83176007F6625 /* AGMedallionView.m */,
+ FE8B046A14E83176007F6625 /* medallionShineMask.png */,
+ );
+ name = Classes;
+ path = ../Classes;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ FE8B044514E83146007F6625 /* AGMedallionView Demo */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = FE8B046414E83146007F6625 /* Build configuration list for PBXNativeTarget "AGMedallionView Demo" */;
+ buildPhases = (
+ FE8B044214E83146007F6625 /* Sources */,
+ FE8B044314E83146007F6625 /* Frameworks */,
+ FE8B044414E83146007F6625 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = "AGMedallionView Demo";
+ productName = "AGMedallionView Demo";
+ productReference = FE8B044614E83146007F6625 /* AGMedallionView Demo.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ FE8B043D14E83145007F6625 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0420;
+ ORGANIZATIONNAME = "Universitatea \"Babes-Bolyai\"";
+ };
+ buildConfigurationList = FE8B044014E83145007F6625 /* Build configuration list for PBXProject "AGMedallionView Demo" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = FE8B043B14E83145007F6625;
+ productRefGroup = FE8B044714E83146007F6625 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ FE8B044514E83146007F6625 /* AGMedallionView Demo */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ FE8B044414E83146007F6625 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ FE8B045514E83146007F6625 /* InfoPlist.strings in Resources */,
+ FE8B046114E83146007F6625 /* AGViewController.xib in Resources */,
+ FE8B046C14E83176007F6625 /* medallionShineMask.png in Resources */,
+ FE7FA03714E834C800B31FD8 /* sample.png in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ FE8B044214E83146007F6625 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ FE8B045714E83146007F6625 /* main.m in Sources */,
+ FE8B045B14E83146007F6625 /* AGAppDelegate.m in Sources */,
+ FE8B045E14E83146007F6625 /* AGViewController.m in Sources */,
+ FE8B046B14E83176007F6625 /* AGMedallionView.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ FE8B045314E83146007F6625 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ FE8B045414E83146007F6625 /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+ FE8B045F14E83146007F6625 /* AGViewController.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ FE8B046014E83146007F6625 /* en */,
+ );
+ name = AGViewController.xib;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ FE8B046214E83146007F6625 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
+ SDKROOT = iphoneos;
+ };
+ name = Debug;
+ };
+ FE8B046314E83146007F6625 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
+ OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
+ SDKROOT = iphoneos;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ FE8B046514E83146007F6625 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "AGMedallionView Demo/AGMedallionView Demo-Prefix.pch";
+ INFOPLIST_FILE = "AGMedallionView Demo/AGMedallionView Demo-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ FE8B046614E83146007F6625 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "AGMedallionView Demo/AGMedallionView Demo-Prefix.pch";
+ INFOPLIST_FILE = "AGMedallionView Demo/AGMedallionView Demo-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ FE8B044014E83145007F6625 /* Build configuration list for PBXProject "AGMedallionView Demo" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ FE8B046214E83146007F6625 /* Debug */,
+ FE8B046314E83146007F6625 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ FE8B046414E83146007F6625 /* Build configuration list for PBXNativeTarget "AGMedallionView Demo" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ FE8B046514E83146007F6625 /* Debug */,
+ FE8B046614E83146007F6625 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = FE8B043D14E83145007F6625 /* Project object */;
+}
View
19 AGMedallionView Demo/AGMedallionView Demo/AGAppDelegate.h
@@ -0,0 +1,19 @@
+//
+// AGAppDelegate.h
+// AGMedallionView Demo
+//
+// Created by Artur Grigor on 2/12/12.
+// Copyright (c) 2012 Universitatea "Babes-Bolyai". All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@class AGViewController;
+
+@interface AGAppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@property (strong, nonatomic) AGViewController *viewController;
+
+@end
View
74 AGMedallionView Demo/AGMedallionView Demo/AGAppDelegate.m
@@ -0,0 +1,74 @@
+//
+// AGAppDelegate.m
+// AGMedallionView Demo
+//
+// Created by Artur Grigor on 2/12/12.
+// Copyright (c) 2012 Universitatea "Babes-Bolyai". All rights reserved.
+//
+
+#import "AGAppDelegate.h"
+
+#import "AGViewController.h"
+
+@implementation AGAppDelegate
+
+@synthesize window = _window;
+@synthesize viewController = _viewController;
+
+- (void)dealloc
+{
+ [_window release];
+ [_viewController release];
+ [super dealloc];
+}
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
+ // Override point for customization after application launch.
+ self.viewController = [[[AGViewController alloc] initWithNibName:@"AGViewController" bundle:nil] autorelease];
+ self.window.rootViewController = self.viewController;
+ [self.window makeKeyAndVisible];
+ 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
View
40 AGMedallionView Demo/AGMedallionView Demo/AGMedallionView Demo-Info.plist
@@ -0,0 +1,40 @@
+<?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>ro.arturgrigor.${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>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
View
14 AGMedallionView Demo/AGMedallionView Demo/AGMedallionView Demo-Prefix.pch
@@ -0,0 +1,14 @@
+//
+// Prefix header for all source files of the 'AGMedallionView Demo' target in the 'AGMedallionView Demo' project
+//
+
+#import <Availability.h>
+
+#ifndef __IPHONE_4_0
+#warning "This project uses features only available in iOS SDK 4.0 and later."
+#endif
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+ #import <Foundation/Foundation.h>
+#endif
View
20 AGMedallionView Demo/AGMedallionView Demo/AGViewController.h
@@ -0,0 +1,20 @@
+//
+// AGViewController.h
+// AGMedallionView Demo
+//
+// Created by Artur Grigor on 2/12/12.
+// Copyright (c) 2012 Universitatea "Babes-Bolyai". All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+#import "AGMedallionView.h"
+
+@interface AGViewController : UIViewController
+{
+ AGMedallionView *medallionView;
+}
+
+@property (nonatomic, retain) IBOutlet AGMedallionView *medallionView;
+
+@end
View
75 AGMedallionView Demo/AGMedallionView Demo/AGViewController.m
@@ -0,0 +1,75 @@
+//
+// AGViewController.m
+// AGMedallionView Demo
+//
+// Created by Artur Grigor on 2/12/12.
+// Copyright (c) 2012 Universitatea "Babes-Bolyai". All rights reserved.
+//
+
+#import "AGViewController.h"
+
+@implementation AGViewController
+
+#pragma mark - Properties
+
+@synthesize medallionView;
+
+#pragma mark - Object Lifecycle
+
+- (void)dealloc
+{
+ [medallionView release];
+
+ [super dealloc];
+}
+
+- (void)didReceiveMemoryWarning
+{
+ [super didReceiveMemoryWarning];
+ // Release any cached data, images, etc that aren't in use.
+}
+
+#pragma mark - View lifecycle
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+ // Do any additional setup after loading the view, typically from a nib.
+
+ self.medallionView.image = [UIImage imageNamed:@"sample.png"];
+}
+
+- (void)viewDidUnload
+{
+ [super viewDidUnload];
+ // Release any retained subviews of the main view.
+ // e.g. self.myOutlet = nil;
+}
+
+- (void)viewWillAppear:(BOOL)animated
+{
+ [super viewWillAppear:animated];
+}
+
+- (void)viewDidAppear:(BOOL)animated
+{
+ [super viewDidAppear:animated];
+}
+
+- (void)viewWillDisappear:(BOOL)animated
+{
+ [super viewWillDisappear:animated];
+}
+
+- (void)viewDidDisappear:(BOOL)animated
+{
+ [super viewDidDisappear:animated];
+}
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+{
+ // Return YES for supported orientations
+ return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
+}
+
+@end
View
155 AGMedallionView Demo/AGMedallionView Demo/en.lproj/AGViewController.xib
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1280</int>
+ <string key="IBDocument.SystemVersion">11D50</string>
+ <string key="IBDocument.InterfaceBuilderVersion">1938</string>
+ <string key="IBDocument.AppKitVersion">1138.32</string>
+ <string key="IBDocument.HIToolboxVersion">568.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">933</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBProxyObject</string>
+ <string>IBUIView</string>
+ </array>
+ <array key="IBDocument.PluginDependencies">
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </array>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+ <integer value="1" key="NS.object.0"/>
+ </object>
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <object class="IBProxyObject" id="372490531">
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBProxyObject" id="843779117">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="774585933">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUIView" id="148758202">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">274</int>
+ <string key="NSFrame">{{96, 166}, {128, 128}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <string key="NSReuseIdentifierKey">_NS:196</string>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MCAwAA</bytes>
+ </object>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </array>
+ <string key="NSFrame">{{0, 20}, {320, 460}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="148758202"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC43NQA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace">
+ <int key="NSID">2</int>
+ </object>
+ </object>
+ <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </array>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <array class="NSMutableArray" key="connectionRecords">
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="774585933"/>
+ </object>
+ <int key="connectionID">7</int>
+ </object>
+ </array>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <array key="orderedObjects">
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <array key="object" id="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="372490531"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="843779117"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="774585933"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="148758202"/>
+ </array>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">8</int>
+ <reference key="object" ref="148758202"/>
+ <reference key="parent" ref="774585933"/>
+ <string key="objectName">Medallion View</string>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">AGViewController</string>
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="-2.CustomClassName">UIResponder</string>
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="6.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="8.CustomClassName">AGMedallionView</string>
+ <string key="8.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
+ <nil key="activeLocalization"/>
+ <dictionary class="NSMutableDictionary" key="localizations"/>
+ <nil key="sourceID"/>
+ <int key="maxID">8</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">AGMedallionView</string>
+ <string key="superclassName">UIView</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/AGMedallionView.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">AGViewController</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/AGViewController.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">933</string>
+ </data>
+</archive>
View
2 AGMedallionView Demo/AGMedallionView Demo/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
View
18 AGMedallionView Demo/AGMedallionView Demo/main.m
@@ -0,0 +1,18 @@
+//
+// main.m
+// AGMedallionView Demo
+//
+// Created by Artur Grigor on 2/12/12.
+// Copyright (c) 2012 Universitatea "Babes-Bolyai". All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+#import "AGAppDelegate.h"
+
+int main(int argc, char *argv[])
+{
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([AGAppDelegate class]));
+ }
+}
View
0 AGMedallionView.h → Classes/AGMedallionView.h
File renamed without changes.
View
0 AGMedallionView.m → Classes/AGMedallionView.m
File renamed without changes.
View
0 medallionShineMask.png → Classes/medallionShineMask.png
File renamed without changes
View
BIN Classes/sample.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9de80d6

Please sign in to comment.