swipe in sidebar for direct access 'goto slide #'

Change-Id: Ife6ba00010267244b537f576d5e1e17d53962dd6
This commit is contained in:
siqi 2013-07-08 19:22:29 +02:00
parent 2e4df8522f
commit 81d6b28b88
25 changed files with 23274 additions and 18 deletions

View File

@ -10,6 +10,9 @@
571BFAD1178AADA200EF1BDB /* more_icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 571BFAD0178AADA200EF1BDB /* more_icon.png */; };
5753DD901781EA0300DB71BB /* serverList_vc.m in Sources */ = {isa = PBXBuildFile; fileRef = 5753DD8F1781EA0300DB71BB /* serverList_vc.m */; };
5753DD9917834D7100DB71BB /* newServer_vc.m in Sources */ = {isa = PBXBuildFile; fileRef = 5753DD9817834D7100DB71BB /* newServer_vc.m */; };
57701739178AC83E00B99793 /* SWRevealViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 57701738178AC83E00B99793 /* SWRevealViewController.m */; };
5770173F178B08A800B99793 /* SWReavealMainController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5770173E178B08A800B99793 /* SWReavealMainController.m */; };
57701742178B0A6900B99793 /* slideShowSwipeInList.m in Sources */ = {isa = PBXBuildFile; fileRef = 57701741178B0A6900B99793 /* slideShowSwipeInList.m */; };
57867A541787172A00EBBE52 /* impress.jpeg in Resources */ = {isa = PBXBuildFile; fileRef = 57867A531787172A00EBBE52 /* impress.jpeg */; };
57867A571787385800EBBE52 /* slideShow_vc.m in Sources */ = {isa = PBXBuildFile; fileRef = 57867A561787385800EBBE52 /* slideShow_vc.m */; };
57867A5A1787510700EBBE52 /* pushed_next_button.png in Resources */ = {isa = PBXBuildFile; fileRef = 57867A581787510700EBBE52 /* pushed_next_button.png */; };
@ -49,6 +52,12 @@
5753DD8F1781EA0300DB71BB /* serverList_vc.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = serverList_vc.m; sourceTree = "<group>"; };
5753DD9717834D7100DB71BB /* newServer_vc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = newServer_vc.h; sourceTree = "<group>"; };
5753DD9817834D7100DB71BB /* newServer_vc.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = newServer_vc.m; sourceTree = "<group>"; };
57701737178AC83E00B99793 /* SWRevealViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SWRevealViewController.h; sourceTree = "<group>"; };
57701738178AC83E00B99793 /* SWRevealViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SWRevealViewController.m; sourceTree = "<group>"; };
5770173D178B08A800B99793 /* SWReavealMainController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SWReavealMainController.h; sourceTree = "<group>"; };
5770173E178B08A800B99793 /* SWReavealMainController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SWReavealMainController.m; sourceTree = "<group>"; };
57701740178B0A6800B99793 /* slideShowSwipeInList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = slideShowSwipeInList.h; sourceTree = "<group>"; };
57701741178B0A6900B99793 /* slideShowSwipeInList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = slideShowSwipeInList.m; sourceTree = "<group>"; };
57867A531787172A00EBBE52 /* impress.jpeg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = impress.jpeg; path = iosremote/impress.jpeg; sourceTree = "<group>"; };
57867A551787385800EBBE52 /* slideShow_vc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = slideShow_vc.h; sourceTree = "<group>"; };
57867A561787385800EBBE52 /* slideShow_vc.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = slideShow_vc.m; sourceTree = "<group>"; };
@ -113,6 +122,28 @@
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
571BFAD2178AB7BA00EF1BDB /* slideShow */ = {
isa = PBXGroup;
children = (
57867A551787385800EBBE52 /* slideShow_vc.h */,
57867A561787385800EBBE52 /* slideShow_vc.m */,
5770173D178B08A800B99793 /* SWReavealMainController.h */,
5770173E178B08A800B99793 /* SWReavealMainController.m */,
57701740178B0A6800B99793 /* slideShowSwipeInList.h */,
57701741178B0A6900B99793 /* slideShowSwipeInList.m */,
);
name = slideShow;
sourceTree = "<group>";
};
57701736178AC83E00B99793 /* SWRevealViewController */ = {
isa = PBXGroup;
children = (
57701737178AC83E00B99793 /* SWRevealViewController.h */,
57701738178AC83E00B99793 /* SWRevealViewController.m */,
);
path = SWRevealViewController;
sourceTree = "<group>";
};
57AEEDAA1788D7B2007F4F97 /* Assets */ = {
isa = PBXGroup;
children = (
@ -180,8 +211,7 @@
57AEEDAB1789443D007F4F97 /* slideShowPreview */,
57C6E401175E06E800E8BC5F /* libreoffice_sdremoteAppDelegate.h */,
57C6E402175E06E800E8BC5F /* libreoffice_sdremoteAppDelegate.m */,
57867A551787385800EBBE52 /* slideShow_vc.h */,
57867A561787385800EBBE52 /* slideShow_vc.m */,
571BFAD2178AB7BA00EF1BDB /* slideShow */,
5753DD9717834D7100DB71BB /* newServer_vc.h */,
5753DD9817834D7100DB71BB /* newServer_vc.m */,
5753DD8E1781EA0300DB71BB /* serverList_vc.h */,
@ -193,6 +223,7 @@
57C6E3F9175E06E800E8BC5F /* Supporting Files */ = {
isa = PBXGroup;
children = (
57701736178AC83E00B99793 /* SWRevealViewController */,
57B152971764703500EECC67 /* Base64.h */,
57B152981764703500EECC67 /* Base64.m */,
57CFED9717838FDC00E82E05 /* EditableTableViewCell.h */,
@ -320,6 +351,9 @@
57FE71E61785D7FE00B50125 /* slideShowPreview_vc.m in Sources */,
57FE71E917861A9000B50125 /* slideShowPreviewTable_vc.m in Sources */,
57867A571787385800EBBE52 /* slideShow_vc.m in Sources */,
57701739178AC83E00B99793 /* SWRevealViewController.m in Sources */,
5770173F178B08A800B99793 /* SWReavealMainController.m in Sources */,
57701742178B0A6900B99793 /* slideShowSwipeInList.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

View File

@ -0,0 +1,18 @@
//
// Animal.h
// SlideoutNavigation
//
// Created by Tammy Coron on 1/10/13.
// Copyright (c) 2013 Tammy L Coron. All rights reserved.
//
@interface Animal : NSObject
+ (id)itemWithTitle:(NSString *)title withImage:(UIImage *)image withCreator:(NSString *)creator;
- (id)initWithTitle:(NSString *)title withImage:(UIImage *)image withCreator:(NSString *)creator;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) UIImage *image;
@property (nonatomic, copy) NSString *creator;
@end

View File

@ -0,0 +1,30 @@
//
// Animal.m
// SlideoutNavigation
//
// Created by Tammy Coron on 1/10/13.
// Copyright (c) 2013 Tammy L Coron. All rights reserved.
//
#import "Animal.h"
@implementation Animal
+ (id)itemWithTitle:(NSString *)title withImage:(UIImage *)image withCreator:(NSString *)creator
{
return [[self alloc] initWithTitle:(NSString *)title withImage:(UIImage *)image withCreator:(NSString *)creator];
}
- (id)initWithTitle:(NSString *)title withImage:(UIImage *)image withCreator:(NSString *)creator
{
if ((self = [super init]))
{
_title = title;
_image = image;
_creator = creator;
}
return self;
}
@end

View File

@ -0,0 +1,30 @@
//
// CenterViewController.h
// Navigation
//
// Created by Tammy Coron on 1/19/13.
// Copyright (c) 2013 Tammy L Coron. All rights reserved.
//
#import "LeftPanelViewController.h"
#import "RightPanelViewController.h"
@protocol CenterViewControllerDelegate <NSObject>
@optional
- (void)movePanelLeft;
- (void)movePanelRight;
@required
- (void)movePanelToOriginalPosition;
@end
@interface CenterViewController : UIViewController <LeftPanelViewControllerDelegate, RightPanelViewControllerDelegate>
@property (nonatomic, assign) id<CenterViewControllerDelegate> delegate;
@property (nonatomic, weak) IBOutlet UIButton *leftButton;
@property (nonatomic, weak) IBOutlet UIButton *rightButton;
@end

View File

@ -0,0 +1,128 @@
//
// CenterViewController.m
// Navigation
//
// Created by Tammy Coron on 1/19/13.
// Copyright (c) 2013 Tammy L Coron. All rights reserved.
//
#import "CenterViewController.h"
#import "Animal.h"
@interface CenterViewController ()
@property (nonatomic, weak) IBOutlet UIImageView *mainImageView;
@property (nonatomic, weak) IBOutlet UILabel *imageTitle;
@property (nonatomic, weak) IBOutlet UILabel *imageCreator;
@property (nonatomic, strong) NSMutableArray *imagesArray;
@end
@implementation CenterViewController
#pragma mark -
#pragma mark View Did Load/Unload
- (void)viewDidLoad
{
[super viewDidLoad];
}
- (void)viewDidUnload
{
[super viewDidUnload];
}
#pragma mark -
#pragma mark View Will/Did Appear
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
}
#pragma mark -
#pragma mark View Will/Did Disappear
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
}
#pragma mark -
#pragma mark Button Actions
- (IBAction)btnMovePanelRight:(id)sender
{
}
- (IBAction)btnMovePanelLeft:(id)sender
{
}
#pragma mark -
#pragma mark Delagate Method for capturing selected image
/*
note: typically, you wouldn't create "duplicate" delagate methods, but we went with simplicity.
doing it this way allowed us to show how to use the #define statement and the switch statement.
*/
- (void)imageSelected:(UIImage *)image withTitle:(NSString *)imageTitle withCreator:(NSString *)imageCreator
{
// only change the main display if an animal/image was selected
if (image)
{
self.mainImageView.image = image;
self.imageTitle.text = [NSString stringWithFormat:@"%@", imageTitle];
self.imageCreator.text = [NSString stringWithFormat:@"%@", imageCreator];
}
}
- (void)animalSelected:(Animal *)animal
{
// only change the main display if an animal/image was selected
if (animal)
{
[self showAnimalSelected:animal];
}
}
// setup the imageview with our selected animal
- (void)showAnimalSelected:(Animal *)animalSelected
{
self.mainImageView.image = animalSelected.image;
self.imageTitle.text = [NSString stringWithFormat:@"%@", animalSelected.title];
self.imageCreator.text = [NSString stringWithFormat:@"%@", animalSelected.creator];
}
#pragma mark -
#pragma mark Default System Code
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self)
{
}
return self;
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
}
@end

View File

@ -16,6 +16,7 @@
@property uint size;
@property uint currentSlide;
@property (nonatomic, strong) id delegate;
@property (nonatomic, strong) id secondaryDelegate;
- (void) putImage: (NSString *)img AtIndex: (uint) index;
- (void) putNotes: (NSString *)notes AtIndex: (uint) index;

View File

@ -28,6 +28,7 @@
@synthesize size = _size;
@synthesize currentSlide = _currentSlide;
@synthesize delegate = _delegate;
@synthesize secondaryDelegate = _secondaryDelegate;
dispatch_queue_t backgroundQueue;
@ -58,7 +59,11 @@ dispatch_queue_t backgroundQueue;
if ([[self.loadBuffer allKeysForObject:[NSNumber numberWithInt:[[[note userInfo] objectForKey:@"index"] intValue]]] count]) {
NSArray * tagArray = [self.loadBuffer allKeysForObject:[NSNumber numberWithInt:[[[note userInfo] objectForKey:@"index"] intValue]]];
for (NSNumber *tag in tagArray) {
UIView * view = [[self.delegate view] viewWithTag:[tag integerValue]];
UIView * view;
if ([tag integerValue] > 20)
view = [[self.secondaryDelegate view] viewWithTag: [tag integerValue]];
else
view = [[self.delegate view] viewWithTag:[tag integerValue]];
if ([view isKindOfClass:[UIImageView class]]){
UIImage *image = [self.imagesDictionary objectForKey:[self.loadBuffer objectForKey:tag]];
if (image) {
@ -67,14 +72,20 @@ dispatch_queue_t backgroundQueue;
}
}
else if ([view isKindOfClass:[UIWebView class]]){
NSLog(@"Async notes");
// NSLog(@"Async notes");
NSString *note = [self.notesDictionary objectForKey:[self.loadBuffer objectForKey:tag]];
if (note) {
[(UIWebView *)view loadHTMLString:note baseURL:nil];
[self.loadBuffer removeObjectForKey:tag];
}
} else if ([view isKindOfClass:[UITableViewCell class]]){
UIImage *image = [self.imagesDictionary objectForKey:[self.loadBuffer objectForKey:tag]];
if (image){
UIImageView *imageView = (UIImageView *)[view viewWithTag:1];
[imageView setImage:image];
[self.loadBuffer removeObjectForKey:tag];
}
}
}
}
}];
@ -107,6 +118,11 @@ dispatch_queue_t backgroundQueue;
{
if ([view isKindOfClass:[UIImageView class]])
[(UIImageView* )view setImage:[UIImage imageNamed:@"slide_finished.png"]];
else if ([view isKindOfClass:[UITableViewCell class]])
{
UIImageView *image = (UIImageView *)[view viewWithTag:1];
[image setImage:[UIImage imageNamed:@"slide_finished.png"]];
}
else if ([view isKindOfClass:[UIWebView class]])
[(UIWebView* )view loadHTMLString: @"SlideShow finished" baseURL:nil];
return;
@ -118,6 +134,11 @@ dispatch_queue_t backgroundQueue;
else{
if ([view isKindOfClass:[UIImageView class]])
[(UIImageView* )view setImage:[self.imagesDictionary objectForKey:[NSNumber numberWithUnsignedInt:index]]];
else if ([view isKindOfClass:[UITableViewCell class]])
{
UIImageView *image = (UIImageView *)[view viewWithTag:1];
[image setImage:[self.imagesDictionary objectForKey:[NSNumber numberWithUnsignedInt:index]]];
}
else if ([view isKindOfClass:[UIWebView class]])
[(UIWebView* )view loadHTMLString: [self.notesDictionary objectForKey:[NSNumber numberWithUnsignedInt:index]] baseURL:nil];
}

View File

@ -0,0 +1,27 @@
//
// LeftPanelViewController.h
// SlideoutNavigation
//
// Created by Tammy Coron on 1/10/13.
// Copyright (c) 2013 Tammy L Coron. All rights reserved.
//
#import <UIKit/UIKit.h>
@class Animal;
@protocol LeftPanelViewControllerDelegate <NSObject>
@optional
- (void)imageSelected:(UIImage *)image withTitle:(NSString *)imageTitle withCreator:(NSString *)imageCreator;
@required
- (void)animalSelected:(Animal *)animal;
@end
@interface LeftPanelViewController : UIViewController
@property (nonatomic, assign) id<LeftPanelViewControllerDelegate> delegate;
@end

View File

@ -0,0 +1,200 @@
//
// LeftPanelViewController.m
// SlideoutNavigation
//
// Created by Tammy Coron on 1/10/13.
// Copyright (c) 2013 Tammy L Coron. All rights reserved.
//
#import "LeftPanelViewController.h"
#import "Animal.h"
@interface LeftPanelViewController ()
@property (nonatomic, weak) IBOutlet UITableView *myTableView;
@property (nonatomic, weak) IBOutlet UITableViewCell *cellMain;
@property (nonatomic, strong) NSMutableArray *arrayOfAnimals;
@end
@implementation LeftPanelViewController
#pragma mark -
#pragma mark View Did Load/Unload
- (void)viewDidLoad
{
[super viewDidLoad];
[self setupAnimalsArray];
}
- (void)viewDidUnload
{
[super viewDidUnload];
}
#pragma mark -
#pragma mark View Will/Did Appear
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
}
#pragma mark -
#pragma mark View Will/Did Disappear
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
}
#pragma mark -
#pragma mark Array Setup
- (void)setupAnimalsArray
{
NSArray *animals = @[
[Animal itemWithTitle:@"Sleeping Cat" withImage:[UIImage imageNamed:@"ID-100113060.jpg"] withCreator:@"papaija2008"],
[Animal itemWithTitle:@"Pussy Cat" withImage:[UIImage imageNamed:@"ID-10022760.jpg"] withCreator:@"Carlos Porto"],
[Animal itemWithTitle:@"Korat Domestic Cat" withImage:[UIImage imageNamed:@"ID-10091065.jpg"] withCreator:@"sippakorn"],
[Animal itemWithTitle:@"Tabby Cat" withImage:[UIImage imageNamed:@"ID-10047796.jpg"] withCreator:@"dan"],
[Animal itemWithTitle:@"Yawning Cat" withImage:[UIImage imageNamed:@"ID-10092572.jpg"] withCreator:@"dan"],
[Animal itemWithTitle:@"Tabby Cat" withImage:[UIImage imageNamed:@"ID-10041194.jpg"] withCreator:@"dan"],
[Animal itemWithTitle:@"Cat On The Rocks" withImage:[UIImage imageNamed:@"ID-10017782.jpg"] withCreator:@"Willem Siers"],
[Animal itemWithTitle:@"Brown Cat Standing" withImage:[UIImage imageNamed:@"ID-10091745.jpg"] withCreator:@"aopsan"],
[Animal itemWithTitle:@"Burmese Cat" withImage:[UIImage imageNamed:@"ID-10056941.jpg"] withCreator:@"Rosemary Ratcliff"],
[Animal itemWithTitle:@"Cat" withImage:[UIImage imageNamed:@"ID-10019208.jpg"] withCreator:@"dan"],
[Animal itemWithTitle:@"Cat" withImage:[UIImage imageNamed:@"ID-10011404.jpg"] withCreator:@"graur codrin"]
];
self.arrayOfAnimals = [NSMutableArray arrayWithArray:animals];
[self.myTableView reloadData];
}
#pragma mark -
#pragma mark UITableView Datasource/Delegate
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return [_arrayOfAnimals count];
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 54;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *cellMainNibID = @"cellMain";
_cellMain = [tableView dequeueReusableCellWithIdentifier:cellMainNibID];
if (_cellMain == nil) {
[[NSBundle mainBundle] loadNibNamed:@"MainCellLeft" owner:self options:nil];
}
UIImageView *mainImage = (UIImageView *)[_cellMain viewWithTag:1];
UILabel *imageTitle = (UILabel *)[_cellMain viewWithTag:2];
UILabel *creator = (UILabel *)[_cellMain viewWithTag:3];
if ([_arrayOfAnimals count] > 0)
{
Animal *currentRecord = [self.arrayOfAnimals objectAtIndex:indexPath.row];
mainImage.image = currentRecord.image;
imageTitle.text = [NSString stringWithFormat:@"%@", currentRecord.title];
creator.text = [NSString stringWithFormat:@"%@", currentRecord.creator];
}
return _cellMain;
}
/*
// Override to support conditional editing of the table view.
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
// Return NO if you do not want the specified item to be editable.
return YES;
}
*/
/*
// Override to support editing the table view.
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
if (editingStyle == UITableViewCellEditingStyleDelete) {
// Delete the row from the data source
[tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
}
else if (editingStyle == UITableViewCellEditingStyleInsert) {
// Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
}
}
*/
/*
// Override to support rearranging the table view.
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
{
}
*/
/*
// Override to support conditional rearranging of the table view.
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
{
// Return NO if you do not want the item to be re-orderable.
return YES;
}
*/
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
Animal *currentRecord = [self.arrayOfAnimals objectAtIndex:indexPath.row];
// Return Data to delegate: either way is fine, although passing back the object may be more efficient
// [_delegate imageSelected:currentRecord.image withTitle:currentRecord.title withCreator:currentRecord.creator];
// [_delegate animalSelected:currentRecord];
[_delegate animalSelected:currentRecord];
}
#pragma mark -
#pragma mark Default System Code
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self)
{
}
return self;
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
}
@end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,280 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1536</int>
<string key="IBDocument.SystemVersion">11G63b</string>
<string key="IBDocument.InterfaceBuilderVersion">2844</string>
<string key="IBDocument.AppKitVersion">1138.51</string>
<string key="IBDocument.HIToolboxVersion">569.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="NS.object.0">1930</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
<string>IBProxyObject</string>
<string>IBUIImageView</string>
<string>IBUILabel</string>
<string>IBUITableViewCell</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="841351856">
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBProxyObject" id="371349661">
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUITableViewCell" id="193777489">
<reference key="NSNextResponder"/>
<int key="NSvFlags">292</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUIView" id="161172274">
<reference key="NSNextResponder" ref="193777489"/>
<int key="NSvFlags">256</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUIImageView" id="280070161">
<reference key="NSNextResponder" ref="161172274"/>
<int key="NSvFlags">292</int>
<string key="NSFrameSize">{320, 54}</string>
<reference key="NSSuperview" ref="161172274"/>
<reference key="NSNextKeyView" ref="290620390"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<object class="NSCustomResource" key="IBUIImage">
<string key="NSClassName">NSImage</string>
<string key="NSResourceName">cellMainBackgroundPlain.png</string>
</object>
</object>
<object class="IBUIImageView" id="290620390">
<reference key="NSNextResponder" ref="161172274"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{3, 2}, {85, 50}}</string>
<reference key="NSSuperview" ref="161172274"/>
<reference key="NSNextKeyView" ref="1026042924"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<int key="IBUITag">1</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUILabel" id="1026042924">
<reference key="NSNextResponder" ref="161172274"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{96, 10}, {164, 21}}</string>
<reference key="NSSuperview" ref="161172274"/>
<reference key="NSNextKeyView" ref="527918763"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
<int key="IBUITag">2</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">Image Name</string>
<int key="IBUIBaselineAdjustment">0</int>
<object class="IBUIFontDescription" key="IBUIFontDescription">
<int key="type">2</int>
<double key="pointSize">14</double>
</object>
<object class="NSFont" key="IBUIFont">
<string key="NSName">Helvetica-Bold</string>
<double key="NSSize">14</double>
<int key="NSfFlags">16</int>
</object>
<bool key="IBUIAdjustsFontSizeToFit">NO</bool>
</object>
<object class="IBUILabel" id="324882164">
<reference key="NSNextResponder" ref="161172274"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{96, 28}, {164, 21}}</string>
<reference key="NSSuperview" ref="161172274"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
<int key="IBUITag">3</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">Image Creator</string>
<object class="NSColor" key="IBUITextColor" id="881203792">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC4zMzMzMzMzMzMzAA</bytes>
</object>
<reference key="IBUIHighlightedColor" ref="881203792"/>
<int key="IBUIBaselineAdjustment">0</int>
<object class="IBUIFontDescription" key="IBUIFontDescription">
<int key="type">1</int>
<double key="pointSize">12</double>
</object>
<object class="NSFont" key="IBUIFont">
<string key="NSName">Helvetica</string>
<double key="NSSize">12</double>
<int key="NSfFlags">16</int>
</object>
<bool key="IBUIAdjustsFontSizeToFit">NO</bool>
</object>
<object class="IBUILabel" id="527918763">
<reference key="NSNextResponder" ref="161172274"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{3, 32}, {85, 21}}</string>
<reference key="NSSuperview" ref="161172274"/>
<reference key="NSNextKeyView" ref="324882164"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">cats rule</string>
<reference key="IBUITextColor" ref="881203792"/>
<object class="NSColor" key="IBUIHighlightedColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
</object>
<int key="IBUIBaselineAdjustment">0</int>
<int key="IBUITextAlignment">1</int>
<object class="IBUIFontDescription" key="IBUIFontDescription">
<int key="type">1</int>
<double key="pointSize">10</double>
</object>
<object class="NSFont" key="IBUIFont">
<string key="NSName">Helvetica</string>
<double key="NSSize">10</double>
<int key="NSfFlags">16</int>
</object>
<bool key="IBUIAdjustsFontSizeToFit">NO</bool>
</object>
</array>
<string key="NSFrameSize">{280, 53}</string>
<reference key="NSSuperview" ref="193777489"/>
<reference key="NSNextKeyView" ref="280070161"/>
<string key="NSReuseIdentifierKey">_NS:11</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MCAwAA</bytes>
</object>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">4</int>
<bool key="IBUIMultipleTouchEnabled">YES</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
</array>
<string key="NSFrameSize">{280, 54}</string>
<reference key="NSSuperview"/>
<reference key="NSNextKeyView" ref="161172274"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUISelectionStyle">2</int>
<reference key="IBUIContentView" ref="161172274"/>
<string key="IBUIReuseIdentifier">cellMain</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">cellMain</string>
<reference key="source" ref="841351856"/>
<reference key="destination" ref="193777489"/>
</object>
<int key="connectionID">14</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="841351856"/>
<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="371349661"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">2</int>
<reference key="object" ref="193777489"/>
<array class="NSMutableArray" key="children">
<reference ref="1026042924"/>
<reference ref="324882164"/>
<reference ref="280070161"/>
<reference ref="290620390"/>
<reference ref="527918763"/>
</array>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">3</int>
<reference key="object" ref="290620390"/>
<array class="NSMutableArray" key="children"/>
<reference key="parent" ref="193777489"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">8</int>
<reference key="object" ref="1026042924"/>
<reference key="parent" ref="193777489"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">9</int>
<reference key="object" ref="324882164"/>
<reference key="parent" ref="193777489"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">10</int>
<reference key="object" ref="280070161"/>
<reference key="parent" ref="193777489"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">13</int>
<reference key="object" ref="527918763"/>
<reference key="parent" ref="193777489"/>
</object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
<string key="-1.CustomClassName">LeftPanelViewController</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="10.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="13.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="3.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="8.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="9.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">14</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes"/>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
<object class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
<string key="NS.key.0">cellMainBackgroundPlain.png</string>
<string key="NS.object.0">{320, 54}</string>
</object>
<string key="IBCocoaTouchPluginVersion">1930</string>
</data>
</archive>

View File

@ -0,0 +1,324 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1536</int>
<string key="IBDocument.SystemVersion">11G63b</string>
<string key="IBDocument.InterfaceBuilderVersion">2844</string>
<string key="IBDocument.AppKitVersion">1138.51</string>
<string key="IBDocument.HIToolboxVersion">569.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="NS.object.0">1930</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
<string>IBProxyObject</string>
<string>IBUIImageView</string>
<string>IBUILabel</string>
<string>IBUITableViewCell</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="841351856">
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBProxyObject" id="371349661">
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUITableViewCell" id="423328617">
<reference key="NSNextResponder"/>
<int key="NSvFlags">292</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUIView" id="86233944">
<reference key="NSNextResponder" ref="423328617"/>
<int key="NSvFlags">256</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUIImageView" id="785968465">
<reference key="NSNextResponder" ref="86233944"/>
<int key="NSvFlags">292</int>
<string key="NSFrameSize">{320, 54}</string>
<reference key="NSSuperview" ref="86233944"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="738684548"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<object class="NSCustomResource" key="IBUIImage">
<string key="NSClassName">NSImage</string>
<string key="NSResourceName">cellMainBackgroundPlain.png</string>
</object>
</object>
<object class="IBUIImageView" id="738684548">
<reference key="NSNextResponder" ref="86233944"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{193, 2}, {85, 50}}</string>
<reference key="NSSuperview" ref="86233944"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="959213783"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<int key="IBUITag">1</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUILabel" id="959213783">
<reference key="NSNextResponder" ref="86233944"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{21, 10}, {164, 21}}</string>
<reference key="NSSuperview" ref="86233944"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="651567237"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
<int key="IBUITag">2</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">Image Name</string>
<int key="IBUIBaselineAdjustment">0</int>
<int key="IBUITextAlignment">2</int>
<object class="IBUIFontDescription" key="IBUIFontDescription">
<int key="type">2</int>
<double key="pointSize">14</double>
</object>
<object class="NSFont" key="IBUIFont">
<string key="NSName">Helvetica-Bold</string>
<double key="NSSize">14</double>
<int key="NSfFlags">16</int>
</object>
<bool key="IBUIAdjustsFontSizeToFit">NO</bool>
</object>
<object class="IBUILabel" id="554889200">
<reference key="NSNextResponder" ref="86233944"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{21, 28}, {164, 21}}</string>
<reference key="NSSuperview" ref="86233944"/>
<reference key="NSWindow"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
<int key="IBUITag">3</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">Image Creator</string>
<object class="NSColor" key="IBUITextColor" id="982899871">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC4zMzMzMzMzMzMzAA</bytes>
</object>
<reference key="IBUIHighlightedColor" ref="982899871"/>
<int key="IBUIBaselineAdjustment">0</int>
<int key="IBUITextAlignment">2</int>
<object class="IBUIFontDescription" key="IBUIFontDescription">
<int key="type">1</int>
<double key="pointSize">12</double>
</object>
<object class="NSFont" key="IBUIFont">
<string key="NSName">Helvetica</string>
<double key="NSSize">12</double>
<int key="NSfFlags">16</int>
</object>
<bool key="IBUIAdjustsFontSizeToFit">NO</bool>
</object>
<object class="IBUILabel" id="651567237">
<reference key="NSNextResponder" ref="86233944"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{193, 32}, {85, 21}}</string>
<reference key="NSSuperview" ref="86233944"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="554889200"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<string key="IBUIText">dogs rule</string>
<reference key="IBUITextColor" ref="982899871"/>
<object class="NSColor" key="IBUIHighlightedColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
</object>
<int key="IBUIBaselineAdjustment">0</int>
<int key="IBUITextAlignment">1</int>
<object class="IBUIFontDescription" key="IBUIFontDescription">
<int key="type">1</int>
<double key="pointSize">10</double>
</object>
<object class="NSFont" key="IBUIFont">
<string key="NSName">Helvetica</string>
<double key="NSSize">10</double>
<int key="NSfFlags">16</int>
</object>
<bool key="IBUIAdjustsFontSizeToFit">NO</bool>
</object>
</array>
<string key="NSFrameSize">{280, 53}</string>
<reference key="NSSuperview" ref="423328617"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="785968465"/>
<string key="NSReuseIdentifierKey">_NS:11</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MCAwAA</bytes>
</object>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">4</int>
<bool key="IBUIMultipleTouchEnabled">YES</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
</array>
<string key="NSFrameSize">{280, 54}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="86233944"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUISelectionStyle">2</int>
<reference key="IBUIContentView" ref="86233944"/>
<string key="IBUIReuseIdentifier">cellMain</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">cellMain</string>
<reference key="source" ref="841351856"/>
<reference key="destination" ref="423328617"/>
</object>
<int key="connectionID">32</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="841351856"/>
<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="371349661"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">26</int>
<reference key="object" ref="423328617"/>
<array class="NSMutableArray" key="children">
<reference ref="651567237"/>
<reference ref="738684548"/>
<reference ref="785968465"/>
<reference ref="554889200"/>
<reference ref="959213783"/>
</array>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">27</int>
<reference key="object" ref="651567237"/>
<reference key="parent" ref="423328617"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">28</int>
<reference key="object" ref="738684548"/>
<reference key="parent" ref="423328617"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">29</int>
<reference key="object" ref="785968465"/>
<reference key="parent" ref="423328617"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">30</int>
<reference key="object" ref="554889200"/>
<reference key="parent" ref="423328617"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">31</int>
<reference key="object" ref="959213783"/>
<reference key="parent" ref="423328617"/>
</object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
<string key="-1.CustomClassName">RightPanelViewController</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="26.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="27.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="28.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="29.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="30.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="31.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">32</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
<string key="className">RightPanelViewController</string>
<string key="superclassName">UIViewController</string>
<object class="NSMutableDictionary" key="actions">
<string key="NS.key.0">btnTab_tap:</string>
<string key="NS.object.0">id</string>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
<string key="NS.key.0">btnTab_tap:</string>
<object class="IBActionInfo" key="NS.object.0">
<string key="name">btnTab_tap:</string>
<string key="candidateClassName">id</string>
</object>
</object>
<dictionary class="NSMutableDictionary" key="outlets">
<string key="cellMain">UITableViewCell</string>
<string key="myTableView">UITableView</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
<object class="IBToOneOutletInfo" key="cellMain">
<string key="name">cellMain</string>
<string key="candidateClassName">UITableViewCell</string>
</object>
<object class="IBToOneOutletInfo" key="myTableView">
<string key="name">myTableView</string>
<string key="candidateClassName">UITableView</string>
</object>
</dictionary>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/RightPanelViewController.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>
<object class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
<string key="NS.key.0">cellMainBackgroundPlain.png</string>
<string key="NS.object.0">{320, 54}</string>
</object>
<string key="IBCocoaTouchPluginVersion">1930</string>
</data>
</archive>

View File

@ -0,0 +1,13 @@
//
// MainViewController.h
// Navigation
//
// Created by Tammy Coron on 1/19/13.
// Copyright (c) 2013 Tammy L Coron. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MainViewController : UIViewController
@end

View File

@ -0,0 +1,168 @@
//
// MainViewController.m
// Navigation
//
// Created by Tammy Coron on 1/19/13.
// Copyright (c) 2013 Tammy L Coron. All rights reserved.
//
#import "MainViewController.h"
#import "slideShow_vc.h"
#import "RightPanelViewController.h"
#define CENTER_TAG 11
#define RIGHT_PANEL_TAG 12
@interface MainViewController () <CenterViewControllerDelegate>
@property (nonatomic, strong) slideShow_vc *centerViewController;
@property (nonatomic, strong) RightPanelViewController *rightPanelViewController;
@property (nonatomic, assign) BOOL showingRightPanel;
@end
@implementation MainViewController
#pragma mark -
#pragma mark View Did Load/Unload
- (void)viewDidLoad
{
[super viewDidLoad];
[self setupView];
}
- (void)viewDidUnload
{
[super viewDidUnload];
}
#pragma mark -
#pragma mark View Will/Did Appear
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
}
#pragma mark -
#pragma mark View Will/Did Disappear
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
}
#pragma mark -
#pragma mark Setup View
- (void)setupView
{
self.centerViewController = [[slideShow_vc alloc] init];
self.centerViewController.view.tag = CENTER_TAG;
self.centerViewController.delegate = self;
[self.view addSubview:self.centerViewController.view];
[self addChildViewController:_centerViewController];
[_centerViewController didMoveToParentViewController:self];
}
- (void)showCenterViewWithShadow:(BOOL)value withOffset:(double)offset
{
}
- (void)resetMainView
{
}
- (UIView *)getLeftView
{
UIView *view = nil;
return view;
}
- (UIView *)getRightView
{
// init view if it doesn't already exist
if (_rightPanelViewController == nil)
{
// this is where you define the view for the right panel
self.rightPanelViewController = [[RightPanelViewController alloc] initWithNibName:@"RightPanelViewController" bundle:nil];
self.rightPanelViewController.view.tag = RIGHT_PANEL_TAG;
self.rightPanelViewController.delegate = _centerViewController;
[self.view addSubview:self.rightPanelViewController.view];
[self addChildViewController:self.rightPanelViewController];
[_rightPanelViewController didMoveToParentViewController:self];
_rightPanelViewController.view.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
}
self.showingRightPanel = YES;
// set up view shadows
[self showCenterViewWithShadow:YES withOffset:2];
UIView *view = self.rightPanelViewController.view;
return view;
}
#pragma mark -
#pragma mark Swipe Gesture Setup/Actions
#pragma mark - setup
- (void)setupGestures
{
}
-(void)movePanel:(id)sender
{
}
#pragma mark -
#pragma mark Delegate Actions
- (void)movePanelLeft // to show right panel
{
}
- (void)movePanelRight // to show left panel
{
}
- (void)movePanelToOriginalPosition
{
}
#pragma mark -
#pragma mark Default System Code
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self)
{
}
return self;
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
}
@end

View File

@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1536</int>
<string key="IBDocument.SystemVersion">11G63b</string>
<string key="IBDocument.InterfaceBuilderVersion">2844</string>
<string key="IBDocument.AppKitVersion">1138.51</string>
<string key="IBDocument.HIToolboxVersion">569.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="NS.object.0">1930</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="975951072">
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUIView" id="191373211">
<reference key="NSNextResponder"/>
<int key="NSvFlags">274</int>
<string key="NSFrame">{{0, 20}, {320, 460}}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC4zMzMzMzMzMzMzAA</bytes>
</object>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics">
<string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string>
<object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap">
<bool key="EncodedWithXMLCoder">YES</bool>
<array key="dict.sortedKeys">
<integer value="1"/>
<integer value="3"/>
</array>
<array key="dict.values">
<string>{320, 480}</string>
<string>{480, 320}</string>
</array>
</object>
<string key="IBUITargetRuntime">IBCocoaTouchFramework</string>
<string key="IBUIDisplayName">Retina 3.5 Full Screen</string>
<int key="IBUIType">0</int>
</object>
<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="191373211"/>
</object>
<int key="connectionID">3</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="191373211"/>
<reference key="parent" ref="0"/>
</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="975951072"/>
<reference key="parent" ref="0"/>
</object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
<string key="-1.CustomClassName">MainViewController</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="1.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">3</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
<string key="className">MainViewController</string>
<string key="superclassName">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/MainViewController.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>
<bool key="IBDocument.UseAutolayout">YES</bool>
<string key="IBCocoaTouchPluginVersion">1930</string>
</data>
</archive>

View File

@ -0,0 +1,27 @@
//
// RightPanelViewController.h
// SlideoutNavigation
//
// Created by Tammy Coron on 1/10/13.
// Copyright (c) 2013 Tammy L Coron. All rights reserved.
//
#import <UIKit/UIKit.h>
@class Animal;
@protocol RightPanelViewControllerDelegate <NSObject>
@optional
- (void)imageSelected:(UIImage *)image withTitle:(NSString *)imageTitle withCreator:(NSString *)imageCreator;
@required
- (void)animalSelected:(Animal *)animal;
@end
@interface RightPanelViewController : UIViewController
@property (nonatomic, assign) id<RightPanelViewControllerDelegate> delegate;
@end

View File

@ -0,0 +1,200 @@
//
// RightPanelViewController.m
// SlideoutNavigation
//
// Created by Tammy Coron on 1/10/13.
// Copyright (c) 2013 Tammy L Coron. All rights reserved.
//
#import "RightPanelViewController.h"
#import "Animal.h"
@interface RightPanelViewController ()
@property (nonatomic, weak) IBOutlet UITableView *myTableView;
@property (nonatomic, weak) IBOutlet UITableViewCell *cellMain;
@property (nonatomic, strong) NSMutableArray *arrayOfAnimals;
@end
@implementation RightPanelViewController
#pragma mark -
#pragma mark View Did Load/Unload
- (void)viewDidLoad
{
[super viewDidLoad];
[self setupAnimalsArray];
}
- (void)viewDidUnload
{
[super viewDidUnload];
}
#pragma mark -
#pragma mark View Will/Did Appear
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
}
#pragma mark -
#pragma mark View Will/Did Disappear
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
}
#pragma mark -
#pragma mark Array Setup
- (void)setupAnimalsArray
{
NSArray *animals = @[
[Animal itemWithTitle:@"White Dog Portrait" withImage:[UIImage imageNamed:@"ID-10034505.jpg"] withCreator:@"photostock"],
[Animal itemWithTitle:@"Black Labrador Retriever" withImage:[UIImage imageNamed:@"ID-1009881.jpg"] withCreator:@"Michal Marcol"],
[Animal itemWithTitle:@"Anxious Dog" withImage:[UIImage imageNamed:@"ID-100120.jpg"] withCreator:@"James Barker"],
[Animal itemWithTitle:@"Husky Dog" withImage:[UIImage imageNamed:@"ID-100136.jpg"] withCreator:@"James Barker"],
[Animal itemWithTitle:@"Puppy" withImage:[UIImage imageNamed:@"ID-100140.jpg"] withCreator:@"James Barker"],
[Animal itemWithTitle:@"Black Labrador Puppy" withImage:[UIImage imageNamed:@"ID-10018395.jpg"] withCreator:@"James Barker"],
[Animal itemWithTitle:@"Yellow Labrador" withImage:[UIImage imageNamed:@"ID-10016005.jpg"] withCreator:@"m_bartosch"],
[Animal itemWithTitle:@"Black Labrador" withImage:[UIImage imageNamed:@"ID-10012923.jpg"] withCreator:@"Felixco, Inc."],
[Animal itemWithTitle:@"Sleepy Dog" withImage:[UIImage imageNamed:@"ID-10021769.jpg"] withCreator:@"Maggie Smith"],
[Animal itemWithTitle:@"English Springer Spaniel Puppy" withImage:[UIImage imageNamed:@"ID-10056667.jpg"] withCreator:@"Tina Phillips"],
[Animal itemWithTitle:@"Intelligent Dog" withImage:[UIImage imageNamed:@"ID-100137.jpg"] withCreator:@"James Barker"]
];
self.arrayOfAnimals = [NSMutableArray arrayWithArray:animals];
[self.myTableView reloadData];
}
#pragma mark -
#pragma mark UITableView Datasource/Delegate
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return [_arrayOfAnimals count];
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 54;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *cellMainNibID = @"cellMain";
_cellMain = [tableView dequeueReusableCellWithIdentifier:cellMainNibID];
if (_cellMain == nil) {
[[NSBundle mainBundle] loadNibNamed:@"MainCellRight" owner:self options:nil];
}
UIImageView *mainImage = (UIImageView *)[_cellMain viewWithTag:1];
UILabel *imageTitle = (UILabel *)[_cellMain viewWithTag:2];
UILabel *creator = (UILabel *)[_cellMain viewWithTag:3];
if ([_arrayOfAnimals count] > 0)
{
Animal *currentRecord = [self.arrayOfAnimals objectAtIndex:indexPath.row];
mainImage.image = currentRecord.image;
imageTitle.text = [NSString stringWithFormat:@"%@", currentRecord.title];
creator.text = [NSString stringWithFormat:@"%@", currentRecord.creator];
}
return _cellMain;
}
/*
// Override to support conditional editing of the table view.
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
// Return NO if you do not want the specified item to be editable.
return YES;
}
*/
/*
// Override to support editing the table view.
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
if (editingStyle == UITableViewCellEditingStyleDelete) {
// Delete the row from the data source
[tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
}
else if (editingStyle == UITableViewCellEditingStyleInsert) {
// Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
}
}
*/
/*
// Override to support rearranging the table view.
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
{
}
*/
/*
// Override to support conditional rearranging of the table view.
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
{
// Return NO if you do not want the item to be re-orderable.
return YES;
}
*/
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
Animal *currentRecord = [self.arrayOfAnimals objectAtIndex:indexPath.row];
// Return Data to delegate: either way is fine, although passing back the object may be more efficient
// [_delegate imageSelected:currentRecord.image withTitle:currentRecord.title withCreator:currentRecord.creator];
// [_delegate animalSelected:currentRecord];
[_delegate animalSelected:currentRecord];
}
#pragma mark -
#pragma mark Default System Code
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self)
{
}
return self;
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
}
@end

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -0,0 +1,176 @@
/*
Copyright (c) 2013 Joan Lluch <joan.lluch@sweetwilliamsl.com>
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.
Early code inspired on a similar class by Philip Kluz (Philip.Kluz@zuui.org)
*/
#import <UIKit/UIKit.h>
@class SWRevealViewController;
@protocol SWRevealViewControllerDelegate;
#pragma mark - SWRevealViewController Class
// Enum values for setFrontViewPosition:animated:
typedef enum
{
FrontViewPositionLeftSideMostRemoved,
FrontViewPositionLeftSideMost,
FrontViewPositionLeftSide,
// Left position, rear view is hidden behind front controller
FrontViewPositionLeft,
// Right possition, front view is presented right-offseted by rearViewRevealWidth
FrontViewPositionRight,
// Right most possition, front view is presented right-offseted by rearViewRevealWidth+rearViewRevealOverdraw
FrontViewPositionRightMost,
// Front controller is removed from view. Animated transitioning from this state will cause the same
// effect than animating from FrontViewPositionRightMost. Use this instead of FrontViewPositionRightMost when
// you intent to remove the front controller view to be removed from the view hierarchy.
FrontViewPositionRightMostRemoved,
} FrontViewPosition;
@interface SWRevealViewController : UIViewController
// Object instance init and rear view setting
- (id)initWithRearViewController:(UIViewController *)rearViewController frontViewController:(UIViewController *)frontViewController;
// Rear view controller, can be nil if not used
@property (strong, nonatomic) UIViewController *rearViewController;
// Optional right view controller, can be nil if not used
@property (strong, nonatomic) UIViewController *rightViewController;
// Front view controller, can be nil on initialization but must be supplied by the time its view is loaded
@property (strong, nonatomic) UIViewController *frontViewController;
// Sets the frontViewController using a default set of chained animations consisting on moving the
// presented frontViewController to the top most right, replacing it, and moving it back to the left position
- (void)setFrontViewController:(UIViewController *)frontViewController animated:(BOOL)animated;
// Front view position, use this to set a particular position state on the controller
// On initialization it is set to FrontViewPositionLeft
@property (assign, nonatomic) FrontViewPosition frontViewPosition;
// Chained animation of the frontViewController position. You can call it several times in a row to achieve
// any set of animations you wish. Animations will be chained and performed one after the other.
- (void)setFrontViewPosition:(FrontViewPosition)frontViewPosition animated:(BOOL)animated;
// Toogles the current state of the front controller between Left or Right and fully visible
// Use setFrontViewPosition to set a particular position
- (void)revealToggleAnimated:(BOOL)animated;
- (void)rightRevealToggleAnimated:(BOOL)animated;
// The following methods are meant to be directly connected to the action method of a button
// to perform user triggered postion change of the controller views. This is ussually added to a
// button on top left or right of the frontViewController
- (void)revealToggle:(id)sender;
- (void)rightRevealToggle:(id)sender;
// The following method will provide a panGestureRecognizer suitable to be added to any view on the frontController
// in order to perform usual drag and swipe gestures on the frontViewController to reveal the rear views. This
// is usually added on the top bar of a front controller.
- (UIPanGestureRecognizer*)panGestureRecognizer;
// The following properties are provided for further customization, they are set to default values on initialization,
// you should not generally have to set them
// Defines how much of the rear view is shown, default is 260.
@property (assign, nonatomic) CGFloat rearViewRevealWidth;
@property (assign, nonatomic) CGFloat rightViewRevealWidth;
// Defines how much of an overdraw can occur when dragging further than 'rearViewRevealWidth', default is 60.
@property (assign, nonatomic) CGFloat rearViewRevealOverdraw;
@property (assign, nonatomic) CGFloat rightViewRevealOverdraw;
// If YES (the default) the controller will bounce to the Left position when dragging further than 'rearViewRevealWidth'
@property (assign, nonatomic) BOOL bounceBackOnOverdraw;
@property (assign, nonatomic) BOOL bounceBackOnLeftOverdraw;
// If YES (default is NO) the controller will allow permanent dragging up to the rightMostPosition
@property (assign, nonatomic) BOOL stableDragOnOverdraw;
@property (assign, nonatomic) BOOL stableDragOnLeftOverdraw;
// Velocity required for the controller to toggle its state based on a swipe movement, default is 300
@property (assign, nonatomic) CGFloat quickFlickVelocity;
// Default duration for the revealToggle animation, default is 0.25
@property (assign, nonatomic) NSTimeInterval toggleAnimationDuration;
// Defines the radius of the front view's shadow, default is 2.5f
@property (assign, nonatomic) CGFloat frontViewShadowRadius;
// Defines the radius of the front view's shadow offset default is {0.0f,2.5f}
@property (assign, nonatomic) CGSize frontViewShadowOffset;
// The class properly handles all the relevant calls to appearance methods on the contained controllers.
// Moreover you can assign a delegate to let the class inform you on positions and animation activity.
// Delegate
@property (weak, nonatomic) id<SWRevealViewControllerDelegate> delegate;
@end
#pragma mark - SWRevealViewControllerDelegate Protocol
@protocol SWRevealViewControllerDelegate<NSObject>
@optional
- (void)revealController:(SWRevealViewController *)revealController willMoveToPosition:(FrontViewPosition)position;
- (void)revealController:(SWRevealViewController *)revealController didMoveToPosition:(FrontViewPosition)position;
- (void)revealController:(SWRevealViewController *)revealController animateToPosition:(FrontViewPosition)position;
- (void)revealControllerPanGestureBegan:(SWRevealViewController *)revealController;
- (void)revealControllerPanGestureEnded:(SWRevealViewController *)revealController;
@end
#pragma mark - UIViewController(SWRevealViewController) Category
// We add a category of UIViewController to let childViewControllers easily access their parent SWRevealViewController
@interface UIViewController(SWRevealViewController)
- (SWRevealViewController*)revealViewController;
@end
// This will allow the class to be defined on a storyboard
#pragma mark - SWRevealViewControllerSegue
@interface SWRevealViewControllerSegue : UIStoryboardSegue
@property (strong) void(^performBlock)( SWRevealViewControllerSegue* segue, UIViewController* svc, UIViewController* dvc );
@end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
//
// SWRevealViewControllerContainer.h
// iosremote
//
// Created by Liu Siqi on 7/8/13.
// Copyright (c) 2013 libreoffice. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SWRevealViewControllerContainer : UIViewController
@end

View File

@ -198,19 +198,101 @@
</view>
<navigationItem key="navigationItem" id="rqp-6S-yX6"/>
<connections>
<segue destination="Ivv-3X-Nhr" kind="push" identifier="slideShowSegue" id="mqm-h4-xUD"/>
<segue destination="LZb-9n-W8N" kind="push" identifier="slideShowSegue" id="DiK-LD-BNQ"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="APz-RZ-QFt" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="620" y="372"/>
<point key="canvasLocation" x="632" y="388"/>
</scene>
<!--Slide Show vc - Presentation-->
<!--Reveal View Controller-->
<scene sceneID="koC-gb-LIk">
<objects>
<placeholder placeholderIdentifier="IBFirstResponder" id="9lz-VN-PH6" userLabel="First Responder" sceneMemberID="firstResponder"/>
<viewController id="LZb-9n-W8N" customClass="SWRevealViewController" sceneMemberID="viewController">
<navigationItem key="navigationItem" id="vRB-Nd-PJ0"/>
<connections>
<segue destination="5d0-J5-Cal" kind="custom" identifier="sw_rear" customClass="SWRevealViewControllerSegue" id="ScC-or-0Qw"/>
<segue destination="Ivv-3X-Nhr" kind="custom" identifier="sw_front" customClass="SWRevealViewControllerSegue" id="UPp-kY-X3T"/>
</connections>
</viewController>
</objects>
<point key="canvasLocation" x="1167" y="1211"/>
</scene>
<!--Slide Show Swipe In List-->
<scene sceneID="yEK-Av-SBc">
<objects>
<tableViewController id="5d0-J5-Cal" customClass="slideShowSwipeInList" sceneMemberID="viewController">
<tableView key="view" opaque="NO" clipsSubviews="YES" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" rowHeight="132" sectionHeaderHeight="22" sectionFooterHeight="22" id="Ke1-ze-r00">
<rect key="frame" x="0.0" y="20" width="320" height="548"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" cocoaTouchSystemColor="scrollViewTexturedBackgroundColor"/>
<prototypes>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="stopWatch" rowHeight="132" id="hig-YG-1Lg">
<rect key="frame" x="0.0" y="22" width="320" height="132"/>
<autoresizingMask key="autoresizingMask"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="320" height="131"/>
<autoresizingMask key="autoresizingMask"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</view>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</tableViewCell>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="slide" rowHeight="132" id="dDp-H3-HyL">
<rect key="frame" x="0.0" y="154" width="320" height="132"/>
<autoresizingMask key="autoresizingMask"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="320" height="131"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" tag="1" contentMode="scaleAspectFit" image="impress.jpeg" translatesAutoresizingMaskIntoConstraints="NO" id="del-Hz-TZI">
<constraints>
<constraint firstAttribute="width" constant="182" id="SUR-3D-tAx"/>
<constraint firstAttribute="height" constant="122" id="idF-T1-zdQ"/>
</constraints>
</imageView>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" tag="2" contentMode="left" text="1" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" minimumScaleFactor="1" preferredMaxLayoutWidth="29" translatesAutoresizingMaskIntoConstraints="NO" id="yWM-Nx-KmF">
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="width" constant="29" id="d7p-Jx-M0G"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<color key="highlightedColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</view>
<constraints>
<constraint firstItem="yWM-Nx-KmF" firstAttribute="trailing" secondItem="del-Hz-TZI" secondAttribute="trailing" type="user" id="Hbw-Pr-pzB"/>
<constraint firstItem="del-Hz-TZI" firstAttribute="centerY" secondItem="dDp-H3-HyL" secondAttribute="centerY" type="default" id="M7A-2c-2Ql"/>
<constraint firstItem="del-Hz-TZI" firstAttribute="leading" secondItem="dDp-H3-HyL" secondAttribute="leading" constant="31" id="MIr-rc-EK4"/>
<constraint firstItem="yWM-Nx-KmF" firstAttribute="bottom" secondItem="del-Hz-TZI" secondAttribute="bottom" type="default" id="iPk-2d-yq5"/>
</constraints>
<connections>
<segue destination="Ivv-3X-Nhr" kind="custom" customClass="SWRevealViewControllerSegue" trigger="accessoryAction" id="xfq-HS-C3T"/>
</connections>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="5d0-J5-Cal" id="hQF-Uq-1Eo"/>
<outlet property="delegate" destination="5d0-J5-Cal" id="QXg-wT-RSm"/>
</connections>
</tableView>
<connections>
<outlet property="slidesTable" destination="Ke1-ze-r00" id="Jvb-7c-oza"/>
</connections>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Fb5-Zn-HeE" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1752" y="950"/>
</scene>
<!--Slide Show vc-->
<scene sceneID="eap-cb-uAt">
<objects>
<viewController id="Ivv-3X-Nhr" customClass="slideShow_vc" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Xty-aF-WDv">
<rect key="frame" x="0.0" y="64" width="320" height="504"/>
<rect key="frame" x="0.0" y="20" width="320" height="548"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" restorationIdentifier="" translatesAutoresizingMaskIntoConstraints="NO" id="3od-5c-yzI" userLabel="Bottom">
@ -372,9 +454,6 @@
<constraint firstAttribute="bottom" secondItem="3od-5c-yzI" secondAttribute="bottom" type="user" id="sob-HW-K69"/>
</constraints>
</view>
<navigationItem key="navigationItem" title="Presentation" id="T79-lT-61m">
<barButtonItem key="rightBarButtonItem" image="more_icon.png" id="W5P-FE-oh8"/>
</navigationItem>
<connections>
<outlet property="lecturer_notes" destination="xGi-A7-hat" id="Cng-HM-0wW"/>
<outlet property="notesView" destination="evg-Ah-Kcw" id="mlQ-Ez-ekQ"/>
@ -385,7 +464,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Uei-nM-J1S" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="620" y="1109"/>
<point key="canvasLocation" x="2290" y="1807"/>
</scene>
<!--Slide Show Preview Table vc-->
<scene sceneID="Tvi-bD-vMC">
@ -439,12 +518,12 @@
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="z5S-eI-1pb" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1133" y="648"/>
<point key="canvasLocation" x="1177" y="688"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="yRe-s4-oKK">
<objects>
<navigationController id="qoG-TN-hN0" sceneMemberID="viewController">
<navigationController modalTransitionStyle="flipHorizontal" id="qoG-TN-hN0" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="WJT-Yy-XZ0">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
@ -541,11 +620,11 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="uCa-zh-PLh" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1133" y="272"/>
<point key="canvasLocation" x="1177" y="388"/>
</scene>
</scenes>
<resources>
<image name="more_icon.png" width="16" height="26"/>
<image name="impress.jpeg" width="204" height="204"/>
<image name="pointer.png" width="143" height="147"/>
<image name="pointer_pushed.png" width="143" height="147"/>
<image name="pushed_next_button.png" width="315" height="220"/>
@ -560,6 +639,9 @@
<class className="NSLayoutConstraint" superclassName="NSObject">
<source key="sourceIdentifier" type="project" relativePath="./Classes/NSLayoutConstraint.h"/>
</class>
<class className="SWRevealViewController" superclassName="UIViewController">
<source key="sourceIdentifier" type="project" relativePath="./Classes/SWRevealViewController.h"/>
</class>
<class className="newServerViewController" superclassName="UITableViewController">
<source key="sourceIdentifier" type="project" relativePath="./Classes/newServerViewController.h"/>
<relationships>
@ -585,6 +667,12 @@
<relationship kind="outlet" name="optionsTable" candidateClass="UITableView"/>
</relationships>
</class>
<class className="slideShowSwipeInList" superclassName="UITableViewController">
<source key="sourceIdentifier" type="project" relativePath="./Classes/slideShowSwipeInList.h"/>
<relationships>
<relationship kind="outlet" name="slidesTable" candidateClass="UITableView"/>
</relationships>
</class>
<class className="slideShow_vc" superclassName="UIViewController">
<source key="sourceIdentifier" type="project" relativePath="./Classes/slideShow_vc.h"/>
<relationships>
@ -593,6 +681,7 @@
<relationship kind="action" name="previousSlideAction:"/>
<relationship kind="outlet" name="lecturer_notes" candidateClass="UIWebView"/>
<relationship kind="outlet" name="notesView" candidateClass="UIView"/>
<relationship kind="outlet" name="revealButtonItem" candidateClass="UIBarButtonItem"/>
<relationship kind="outlet" name="secondarySlideView" candidateClass="UIImageView"/>
<relationship kind="outlet" name="slideNumber" candidateClass="UILabel"/>
<relationship kind="outlet" name="slideView" candidateClass="UIImageView"/>
@ -606,5 +695,6 @@
</simulatedMetricsContainer>
<inferredMetricsTieBreakers>
<segue reference="geL-Q8-f61"/>
<segue reference="xfq-HS-C3T"/>
</inferredMetricsTieBreakers>
</document>

View File

@ -9,6 +9,7 @@
#import "slideShow_vc.h"
#import "SlideShow.h"
#import "CommunicationManager.h"
#import "SWRevealViewController.h"
#import "CommandInterpreter.h"
#import "CommandTransmitter.h"
#import <QuartzCore/QuartzCore.h>
@ -25,6 +26,9 @@
@property (nonatomic, strong) id slideShowFinishedObserver;
@property (nonatomic, strong) SlideShow* slideshow;
// SWReveal Controller
@property (readwrite) IBOutlet UIBarButtonItem* revealButtonItem;
@end
@implementation slideShow_vc
@ -66,7 +70,14 @@
style:UIBarButtonItemStyleBordered
target:self
action:@selector(handleBack:)];
self.navigationItem.leftBarButtonItem = backButton;
self.revealViewController.navigationItem.leftBarButtonItem = backButton;
self.revealButtonItem = [[UIBarButtonItem alloc] initWithImage: [UIImage imageNamed:@"more_icon.png"]
style:UIBarButtonItemStyleBordered
target:self.revealViewController
action:@selector( revealToggle: )];
self.revealViewController.navigationItem.rightBarButtonItem = self.revealButtonItem;
[self.navigationController.navigationBar addGestureRecognizer: self.revealViewController.panGestureRecognizer];
}
- (void) handleBack:(id)sender