Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add images on the fly

  • Loading branch information...
commit edcfa0216658861b8958cec97962ff6691203c7f 1 parent c6c9d14
@pulkitsinghal authored
View
23 screammachine.xcodeproj/project.pbxproj
@@ -7,6 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
+ A75849AD14FFA6650052299E /* UIImage+Utility.m in Sources */ = {isa = PBXBuildFile; fileRef = A75849AC14FFA6650052299E /* UIImage+Utility.m */; };
A7CB365614EB18CC00C50A61 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7CB365514EB18CC00C50A61 /* UIKit.framework */; };
A7CB365814EB18CC00C50A61 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7CB365714EB18CC00C50A61 /* Foundation.framework */; };
A7CB365A14EB18CC00C50A61 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7CB365914EB18CC00C50A61 /* CoreGraphics.framework */; };
@@ -18,17 +19,19 @@
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
+ A75849AB14FFA6650052299E /* UIImage+Utility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImage+Utility.h"; sourceTree = "<group>"; };
+ A75849AC14FFA6650052299E /* UIImage+Utility.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImage+Utility.m"; sourceTree = "<group>"; };
A7CB365114EB18CC00C50A61 /* screammachine.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = screammachine.app; sourceTree = BUILT_PRODUCTS_DIR; };
A7CB365514EB18CC00C50A61 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
A7CB365714EB18CC00C50A61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
A7CB365914EB18CC00C50A61 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
- A7CB365D14EB18CC00C50A61 /* screammachine-Info.plist */ = {isa = PBXFileReference; path = "screammachine-Info.plist"; sourceTree = "<group>"; };
+ A7CB365D14EB18CC00C50A61 /* screammachine-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "screammachine-Info.plist"; sourceTree = "<group>"; };
A7CB365F14EB18CC00C50A61 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
A7CB366114EB18CC00C50A61 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
- A7CB366314EB18CC00C50A61 /* screammachine-Prefix.pch */ = {isa = PBXFileReference; path = "screammachine-Prefix.pch"; sourceTree = "<group>"; };
- A7CB366414EB18CC00C50A61 /* AppDelegate.h */ = {isa = PBXFileReference; path = AppDelegate.h; sourceTree = "<group>"; };
+ A7CB366314EB18CC00C50A61 /* screammachine-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "screammachine-Prefix.pch"; sourceTree = "<group>"; };
+ A7CB366414EB18CC00C50A61 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
A7CB366514EB18CC00C50A61 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
- A7CB366714EB18CC00C50A61 /* ViewController.h */ = {isa = PBXFileReference; path = ViewController.h; sourceTree = "<group>"; };
+ A7CB366714EB18CC00C50A61 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
A7CB366814EB18CC00C50A61 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
A7CB366B14EB18CC00C50A61 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController.xib; sourceTree = "<group>"; };
/* End PBXFileReference section */
@@ -47,6 +50,15 @@
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
+ A75849AA14FFA65D0052299E /* utility */ = {
+ isa = PBXGroup;
+ children = (
+ A75849AB14FFA6650052299E /* UIImage+Utility.h */,
+ A75849AC14FFA6650052299E /* UIImage+Utility.m */,
+ );
+ path = utility;
+ sourceTree = "<group>";
+ };
A7CB364614EB18CC00C50A61 = {
isa = PBXGroup;
children = (
@@ -77,6 +89,7 @@
A7CB365B14EB18CC00C50A61 /* screammachine */ = {
isa = PBXGroup;
children = (
+ A75849AA14FFA65D0052299E /* utility */,
A7CB366414EB18CC00C50A61 /* AppDelegate.h */,
A7CB366514EB18CC00C50A61 /* AppDelegate.m */,
A7CB366714EB18CC00C50A61 /* ViewController.h */,
@@ -163,6 +176,7 @@
A7CB366214EB18CC00C50A61 /* main.m in Sources */,
A7CB366614EB18CC00C50A61 /* AppDelegate.m in Sources */,
A7CB366914EB18CC00C50A61 /* ViewController.m in Sources */,
+ A75849AD14FFA6650052299E /* UIImage+Utility.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -274,6 +288,7 @@
A7CB367114EB18CC00C50A61 /* Release */,
);
defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
View
7 screammachine.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:screammachine.xcodeproj">
+ </FileRef>
+</Workspace>
View
8 screammachine/ViewController.h
@@ -9,5 +9,13 @@
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
+<UIImagePickerControllerDelegate, UINavigationControllerDelegate>
+
+@property (nonatomic, retain) UIImagePickerController *imagePickerController;
+@property (nonatomic, retain) UIButton *thisButtonNeedsPicture;
+
+- (IBAction) showPopUp : (id) sender;
+
+- (IBAction) takePicture : (id) sender;
@end
View
92 screammachine/ViewController.m
@@ -7,17 +7,107 @@
//
#import "ViewController.h"
+#import "UIImage+Utility.h"
@implementation ViewController
+#pragma mark - Instance variables
+@synthesize imagePickerController = _imagePickerController;
+@synthesize thisButtonNeedsPicture = _thisButtonNeedsPicture;
+
+#pragma mark - NSObject methods
+- (id) initWithNibName : (NSString *) nibNameOrNil
+ bundle : (NSBundle *) nibBundleOrNil
+{
+ if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]))
+ {
+ self.imagePickerController = [[UIImagePickerController alloc] init];
+ if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
+ self.imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
+ }
+ self.imagePickerController.delegate = self;
+ }
+ return self;
+}
+
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
-#pragma mark - View lifecycle
+#pragma mark - Instance methods
+- (IBAction) showPopUp : (id) sender
+{
+ UIAlertView *popUp =
+ [[UIAlertView alloc] initWithTitle : @"Guess Who?"
+ message : ((UIButton*)sender).titleLabel.text
+ delegate : nil
+ cancelButtonTitle : @"No Idea!"
+ otherButtonTitles : nil];
+ [popUp show];
+}
+
+- (IBAction) takePicture : (id) sender
+{
+ if (((UIButton*)sender).imageView.image == nil) {
+ [self presentViewController:self.imagePickerController
+ animated:YES
+ completion:
+ ^{
+ NSLog(@"This runs before the camera shutter opens :)");
+ self.thisButtonNeedsPicture = (UIButton*)sender;
+ }
+ ];
+ } else {
+ [self showPopUp:sender];
+ }
+}
+
+#pragma mark - UIImagePickerControllerDelegate methods
+- (void) imagePickerController : (UIImagePickerController *) picker
+ didFinishPickingImage : (UIImage *) image
+{
+ NSLog(@"picked a picture");
+
+ //self.thisButtonNeedsPicture.imageView.image =
+ image =
+ [UIImage imageWithImage:image
+ scaledToSize:(CGSizeMake(85.0, 122.0))];
+
+ [self.thisButtonNeedsPicture setImage:image
+ forState:UIControlStateNormal];
+ [self dismissModalViewControllerAnimated:YES];
+}
+
+- (void) imagePickerController : (UIImagePickerController *) picker
+ didFinishPickingMediaWithInfo : (NSDictionary *) info
+{
+ NSLog(@"took a picture");
+
+ NSLog(@"%@", self.thisButtonNeedsPicture);
+ NSLog(@"%@", self.thisButtonNeedsPicture.imageView);
+ NSLog(@"%@", self.thisButtonNeedsPicture.imageView.image);
+
+ //self.thisButtonNeedsPicture.imageView.image =
+ UIImage *image =
+ [UIImage imageWithImage:(UIImage *) [info objectForKey:UIImagePickerControllerOriginalImage]
+ scaledToSize:(CGSizeMake(85.0, 122.0))];
+
+ [self.thisButtonNeedsPicture setImage:image
+ forState:UIControlStateNormal];
+
+ [self dismissModalViewControllerAnimated:YES];
+}
+
+- (void)imagePickerControllerDidCancel : (UIImagePickerController *) picker
+{
+ NSLog(@"did not take/pick a picture");
+ [self dismissModalViewControllerAnimated:YES];
+}
+
+#pragma mark - View lifecycle
- (void)viewDidLoad
{
[super viewDidLoad];
View
405 screammachine/en.lproj/ViewController.xib
@@ -2,17 +2,18 @@
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1280</int>
- <string key="IBDocument.SystemVersion">11C25</string>
- <string key="IBDocument.InterfaceBuilderVersion">1919</string>
- <string key="IBDocument.AppKitVersion">1138.11</string>
- <string key="IBDocument.HIToolboxVersion">566.00</string>
+ <string key="IBDocument.SystemVersion">11D50b</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">916</string>
+ <string key="NS.object.0">933</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
<string>IBProxyObject</string>
<string>IBUIView</string>
+ <string>IBUIButton</string>
</array>
<array key="IBDocument.PluginDependencies">
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
@@ -33,9 +34,239 @@
<object class="IBUIView" id="774585933">
<reference key="NSNextResponder"/>
<int key="NSvFlags">274</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUIButton" id="122939218">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 25}, {85, 122}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="464765051"/>
+ <string key="NSReuseIdentifierKey">_NS:225</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">1</string>
+ <object class="NSColor" key="IBUIHighlightedTitleColor" id="860936407">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzE0IDAuMzA5ODAzOTIxNiAwLjUyMTU2ODYyNzUAA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleShadowColor" id="920720848">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC41AA</bytes>
+ </object>
+ <object class="IBUIFontDescription" key="IBUIFontDescription">
+ <int key="type">2</int>
+ <int key="size">2</int>
+ </object>
+ <object class="NSFont" key="IBUIFont">
+ <string key="NSName">Helvetica-Bold</string>
+ <double key="NSSize">18</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ </object>
+ <object class="IBUIButton" id="464765051">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{118, 25}, {85, 122}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="399902053"/>
+ <string key="NSReuseIdentifierKey">_NS:225</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">2</string>
+ <reference key="IBUIHighlightedTitleColor" ref="860936407"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="920720848"/>
+ <object class="IBUIFontDescription" key="IBUIFontDescription" id="917242661">
+ <int key="type">2</int>
+ <double key="pointSize">15</double>
+ </object>
+ <object class="NSFont" key="IBUIFont" id="711083486">
+ <string key="NSName">Helvetica-Bold</string>
+ <double key="NSSize">15</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ </object>
+ <object class="IBUIButton" id="399902053">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{215, 25}, {85, 122}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="928749772"/>
+ <string key="NSReuseIdentifierKey">_NS:225</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">3</string>
+ <reference key="IBUIHighlightedTitleColor" ref="860936407"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="920720848"/>
+ <reference key="IBUIFontDescription" ref="917242661"/>
+ <reference key="IBUIFont" ref="711083486"/>
+ </object>
+ <object class="IBUIButton" id="928749772">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 169}, {85, 122}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="19764269"/>
+ <string key="NSReuseIdentifierKey">_NS:225</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">4</string>
+ <reference key="IBUIHighlightedTitleColor" ref="860936407"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="920720848"/>
+ <reference key="IBUIFontDescription" ref="917242661"/>
+ <reference key="IBUIFont" ref="711083486"/>
+ </object>
+ <object class="IBUIButton" id="19764269">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{118, 169}, {85, 122}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="941620674"/>
+ <string key="NSReuseIdentifierKey">_NS:225</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">5</string>
+ <reference key="IBUIHighlightedTitleColor" ref="860936407"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="920720848"/>
+ <reference key="IBUIFontDescription" ref="917242661"/>
+ <reference key="IBUIFont" ref="711083486"/>
+ </object>
+ <object class="IBUIButton" id="941620674">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{215, 169}, {85, 122}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="306744420"/>
+ <string key="NSReuseIdentifierKey">_NS:225</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">6</string>
+ <reference key="IBUIHighlightedTitleColor" ref="860936407"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="920720848"/>
+ <reference key="IBUIFontDescription" ref="917242661"/>
+ <reference key="IBUIFont" ref="711083486"/>
+ </object>
+ <object class="IBUIButton" id="306744420">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 318}, {85, 122}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="56915635"/>
+ <string key="NSReuseIdentifierKey">_NS:225</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">7</string>
+ <reference key="IBUIHighlightedTitleColor" ref="860936407"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="920720848"/>
+ <reference key="IBUIFontDescription" ref="917242661"/>
+ <reference key="IBUIFont" ref="711083486"/>
+ </object>
+ <object class="IBUIButton" id="56915635">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{118, 318}, {85, 122}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="882940345"/>
+ <string key="NSReuseIdentifierKey">_NS:225</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">8</string>
+ <reference key="IBUIHighlightedTitleColor" ref="860936407"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="920720848"/>
+ <reference key="IBUIFontDescription" ref="917242661"/>
+ <reference key="IBUIFont" ref="711083486"/>
+ </object>
+ <object class="IBUIButton" id="882940345">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{215, 318}, {85, 122}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <string key="NSReuseIdentifierKey">_NS:225</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">9</string>
+ <reference key="IBUIHighlightedTitleColor" ref="860936407"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="920720848"/>
+ <reference key="IBUIFontDescription" ref="917242661"/>
+ <reference key="IBUIFont" ref="711083486"/>
+ </object>
+ </array>
<string key="NSFrame">{{0, 20}, {320, 460}}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="122939218"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC43NQA</bytes>
@@ -58,6 +289,87 @@
</object>
<int key="connectionID">7</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">takePicture:</string>
+ <reference key="source" ref="122939218"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">59</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">takePicture:</string>
+ <reference key="source" ref="464765051"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">60</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">takePicture:</string>
+ <reference key="source" ref="399902053"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">61</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">takePicture:</string>
+ <reference key="source" ref="928749772"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">62</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">takePicture:</string>
+ <reference key="source" ref="19764269"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">63</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">takePicture:</string>
+ <reference key="source" ref="941620674"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">64</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">takePicture:</string>
+ <reference key="source" ref="306744420"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">65</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">takePicture:</string>
+ <reference key="source" ref="56915635"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">66</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">takePicture:</string>
+ <reference key="source" ref="882940345"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">67</int>
+ </object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
@@ -81,8 +393,64 @@
<object class="IBObjectRecord">
<int key="objectID">6</int>
<reference key="object" ref="774585933"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="399902053"/>
+ <reference ref="122939218"/>
+ <reference ref="464765051"/>
+ <reference ref="928749772"/>
+ <reference ref="19764269"/>
+ <reference ref="941620674"/>
+ <reference ref="306744420"/>
+ <reference ref="56915635"/>
+ <reference ref="882940345"/>
+ </array>
<reference key="parent" ref="0"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">17</int>
+ <reference key="object" ref="122939218"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">22</int>
+ <reference key="object" ref="464765051"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">23</int>
+ <reference key="object" ref="399902053"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">44</int>
+ <reference key="object" ref="928749772"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">45</int>
+ <reference key="object" ref="19764269"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">46</int>
+ <reference key="object" ref="941620674"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">47</int>
+ <reference key="object" ref="306744420"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">48</int>
+ <reference key="object" ref="56915635"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">49</int>
+ <reference key="object" ref="882940345"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
@@ -90,19 +458,42 @@
<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="17.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="22.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="23.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="44.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="45.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="46.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="47.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="48.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="49.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="6.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">7</int>
+ <int key="maxID">67</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
<string key="className">ViewController</string>
<string key="superclassName">UIViewController</string>
+ <dictionary class="NSMutableDictionary" key="actions">
+ <string key="showPopUp:">id</string>
+ <string key="takePicture:">id</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="actionInfosByName">
+ <object class="IBActionInfo" key="showPopUp:">
+ <string key="name">showPopUp:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="takePicture:">
+ <string key="name">takePicture:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </dictionary>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/ViewController.h</string>
@@ -114,6 +505,6 @@
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
- <string key="IBCocoaTouchPluginVersion">916</string>
+ <string key="IBCocoaTouchPluginVersion">933</string>
</data>
</archive>
Please sign in to comment.
Something went wrong with that request. Please try again.