Full Code of itouch2/SphereMenu for AI

master 72edc37090cc cached
31 files
57.0 KB
17.7k tokens
1 requests
Download .txt
Repository: itouch2/SphereMenu
Branch: master
Commit: 72edc37090cc
Files: 31
Total size: 57.0 KB

Directory structure:
gitextract_w0o2r07r/

├── LICENSE
├── README.md
├── SphereMenu/
│   ├── AppDelegate.h
│   ├── AppDelegate.m
│   ├── Base.lproj/
│   │   ├── Main_iPad.storyboard
│   │   └── Main_iPhone.storyboard
│   ├── Images.xcassets/
│   │   ├── AppIcon.appiconset/
│   │   │   └── Contents.json
│   │   ├── LaunchImage.launchimage/
│   │   │   └── Contents.json
│   │   ├── icon-email.imageset/
│   │   │   └── Contents.json
│   │   ├── icon-facebook.imageset/
│   │   │   └── Contents.json
│   │   ├── icon-twitter.imageset/
│   │   │   └── Contents.json
│   │   └── start.imageset/
│   │       └── Contents.json
│   ├── Launch Screen.xib
│   ├── SphereMenu/
│   │   ├── SphereMenu.h
│   │   └── SphereMenu.m
│   ├── SphereMenu-Info.plist
│   ├── SphereMenu-Prefix.pch
│   ├── ViewController.h
│   ├── ViewController.m
│   ├── en.lproj/
│   │   └── InfoPlist.strings
│   └── main.m
├── SphereMenu.xcodeproj/
│   ├── project.pbxproj
│   ├── project.xcworkspace/
│   │   ├── contents.xcworkspacedata
│   │   ├── xcshareddata/
│   │   │   └── SphereMenu.xccheckout
│   │   └── xcuserdata/
│   │       └── Chandler.xcuserdatad/
│   │           └── UserInterfaceState.xcuserstate
│   └── xcuserdata/
│       └── Chandler.xcuserdatad/
│           ├── xcdebugger/
│           │   └── Breakpoints_v2.xcbkptlist
│           └── xcschemes/
│               ├── SphereMenu.xcscheme
│               └── xcschememanagement.plist
└── SphereMenuTests/
    ├── SphereMenuTests-Info.plist
    ├── SphereMenuTests.m
    └── en.lproj/
        └── InfoPlist.strings

================================================
FILE CONTENTS
================================================

================================================
FILE: LICENSE
================================================
The MIT License (MIT)

Copyright (c) 2014 tuyou

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.

================================================
FILE: README.md
================================================
# SphereMenu

SphereMenu is a fun menu powered by `UIDynamicAnimator`. Inspired by [Sphere](https://itunes.apple.com/hk/app/sphere-360o-photography/id335671384?mt=8).

## Usage
To use SpereMenu, create a `SpereMenu` like this

```objective-c
UIImage *startImage = [UIImage imageNamed:@"start"];
UIImage *image1 = [UIImage imageNamed:@"icon-twitter"];
UIImage *image2 = [UIImage imageNamed:@"icon-email"];
UIImage *image3 = [UIImage imageNamed:@"icon-facebook"];
NSArray *images = @[image1, image2, image3];
SphereMenu *sphereMenu = [[SphereMenu alloc] initWithStartPoint:CGPointMake(160, 320) startImage:startImage submenuImages:images];
sphereMenu.delegate = self;
[self.view addSubview:sphereMenu];
```

## A Quick Peek
![screenshots](https://cloud.githubusercontent.com/assets/4316898/4098401/7cc3710e-301b-11e4-83ba-529349111c4d.gif)

## License

SphereMenu is available under the MIT license, see the LICENSE file for more information.     


================================================
FILE: SphereMenu/AppDelegate.h
================================================
//
//  AppDelegate.h
//  SphereMenu
//
//  Created by Tu You on 14-8-24.
//  Copyright (c) 2014年 TU YOU. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end


================================================
FILE: SphereMenu/AppDelegate.m
================================================
//
//  AppDelegate.m
//  SphereMenu
//
//  Created by Tu You on 14-8-24.
//  Copyright (c) 2014年 TU YOU. All rights reserved.
//

#import "AppDelegate.h"

@implementation AppDelegate

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

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

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

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

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

@end


================================================
FILE: SphereMenu/Base.lproj/Main_iPad.storyboard
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="5023" systemVersion="13A603" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" initialViewController="BYZ-38-t0r">
    <dependencies>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/>
    </dependencies>
    <scenes>
        <!--class Prefix:identifier View Controller-->
        <scene sceneID="tne-QT-ifu">
            <objects>
                <viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
                    <layoutGuides>
                        <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
                        <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
                    </layoutGuides>
                    <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
                        <rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
                    </view>
                </viewController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
            </objects>
        </scene>
    </scenes>
    <simulatedMetricsContainer key="defaultSimulatedMetrics">
        <simulatedStatusBarMetrics key="statusBar"/>
        <simulatedOrientationMetrics key="orientation"/>
        <simulatedScreenMetrics key="destination"/>
    </simulatedMetricsContainer>
</document>


================================================
FILE: SphereMenu/Base.lproj/Main_iPhone.storyboard
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="5023" systemVersion="13A603" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="vXZ-lx-hvc">
    <dependencies>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/>
    </dependencies>
    <scenes>
        <!--class Prefix:identifier View Controller-->
        <scene sceneID="ufC-wZ-h7g">
            <objects>
                <viewController id="vXZ-lx-hvc" customClass="ViewController" sceneMemberID="viewController">
                    <layoutGuides>
                        <viewControllerLayoutGuide type="top" id="jyV-Pf-zRb"/>
                        <viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/>
                    </layoutGuides>
                    <view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
                        <rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
                    </view>
                </viewController>
                <placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
            </objects>
        </scene>
    </scenes>
    <simulatedMetricsContainer key="defaultSimulatedMetrics">
        <simulatedStatusBarMetrics key="statusBar"/>
        <simulatedOrientationMetrics key="orientation"/>
        <simulatedScreenMetrics key="destination" type="retina4"/>
    </simulatedMetricsContainer>
</document>


================================================
FILE: SphereMenu/Images.xcassets/AppIcon.appiconset/Contents.json
================================================
{
  "images" : [
    {
      "idiom" : "iphone",
      "size" : "29x29",
      "scale" : "2x"
    },
    {
      "idiom" : "iphone",
      "size" : "40x40",
      "scale" : "2x"
    },
    {
      "idiom" : "iphone",
      "size" : "60x60",
      "scale" : "2x"
    },
    {
      "idiom" : "ipad",
      "size" : "29x29",
      "scale" : "1x"
    },
    {
      "idiom" : "ipad",
      "size" : "29x29",
      "scale" : "2x"
    },
    {
      "idiom" : "ipad",
      "size" : "40x40",
      "scale" : "1x"
    },
    {
      "idiom" : "ipad",
      "size" : "40x40",
      "scale" : "2x"
    },
    {
      "idiom" : "ipad",
      "size" : "76x76",
      "scale" : "1x"
    },
    {
      "idiom" : "ipad",
      "size" : "76x76",
      "scale" : "2x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

================================================
FILE: SphereMenu/Images.xcassets/LaunchImage.launchimage/Contents.json
================================================
{
  "images" : [
    {
      "orientation" : "portrait",
      "idiom" : "iphone",
      "extent" : "full-screen",
      "minimum-system-version" : "7.0",
      "scale" : "2x"
    },
    {
      "orientation" : "portrait",
      "idiom" : "iphone",
      "subtype" : "retina4",
      "extent" : "full-screen",
      "minimum-system-version" : "7.0",
      "scale" : "2x"
    },
    {
      "orientation" : "portrait",
      "idiom" : "ipad",
      "extent" : "full-screen",
      "minimum-system-version" : "7.0",
      "scale" : "1x"
    },
    {
      "orientation" : "landscape",
      "idiom" : "ipad",
      "extent" : "full-screen",
      "minimum-system-version" : "7.0",
      "scale" : "1x"
    },
    {
      "orientation" : "portrait",
      "idiom" : "ipad",
      "extent" : "full-screen",
      "minimum-system-version" : "7.0",
      "scale" : "2x"
    },
    {
      "orientation" : "landscape",
      "idiom" : "ipad",
      "extent" : "full-screen",
      "minimum-system-version" : "7.0",
      "scale" : "2x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

================================================
FILE: SphereMenu/Images.xcassets/icon-email.imageset/Contents.json
================================================
{
  "images" : [
    {
      "idiom" : "universal",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "scale" : "2x",
      "filename" : "icon-email@2x.png"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

================================================
FILE: SphereMenu/Images.xcassets/icon-facebook.imageset/Contents.json
================================================
{
  "images" : [
    {
      "idiom" : "universal",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "scale" : "2x",
      "filename" : "icon-facebook@2x.png"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

================================================
FILE: SphereMenu/Images.xcassets/icon-twitter.imageset/Contents.json
================================================
{
  "images" : [
    {
      "idiom" : "universal",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "scale" : "2x",
      "filename" : "icon-twitter@2x.png"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

================================================
FILE: SphereMenu/Images.xcassets/start.imageset/Contents.json
================================================
{
  "images" : [
    {
      "idiom" : "universal",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "scale" : "2x",
      "filename" : "start@2x.png"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

================================================
FILE: SphereMenu/Launch Screen.xib
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
    <dependencies>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
        <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
    </dependencies>
    <objects>
        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
        <view contentMode="scaleToFill" id="iN0-l3-epB">
            <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
            <subviews>
                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="  Copyright (c) 2015年 TU YOU. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
                    <rect key="frame" x="20" y="439" width="441" height="21"/>
                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
                    <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
                    <nil key="highlightedColor"/>
                    <variation key="widthClass=compact">
                        <fontDescription key="fontDescription" type="system" pointSize="11"/>
                    </variation>
                </label>
                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="SphereMenu" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
                    <rect key="frame" x="20" y="140" width="441" height="43"/>
                    <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
                    <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
                    <nil key="highlightedColor"/>
                </label>
            </subviews>
            <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
            <constraints>
                <constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="Kid-kn-2rF"/>
                <constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
                <constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
                <constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
                <constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
                <constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
            </constraints>
            <nil key="simulatedStatusBarMetrics"/>
            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
            <point key="canvasLocation" x="404" y="445"/>
        </view>
    </objects>
</document>


================================================
FILE: SphereMenu/SphereMenu/SphereMenu.h
================================================
//
//  SphereMenu.h
//  SphereMenu
//
//  Created by Tu You on 14-8-24.
//  Copyright (c) 2014年 TU YOU. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SphereMenuDelegate <NSObject>

- (void)sphereDidSelected:(int)index;

@end

@interface SphereMenu : UIView

- (instancetype)initWithStartPoint:(CGPoint)startPoint
                        startImage:(UIImage *)startImage
                     submenuImages:(NSArray *)images;

@property (nonatomic, weak) id<SphereMenuDelegate> delegate;

@property (nonatomic, assign) CGFloat angle;
@property (nonatomic, assign) CGFloat sphereDamping;
@property (nonatomic, assign) CGFloat sphereLength;


@end


================================================
FILE: SphereMenu/SphereMenu/SphereMenu.m
================================================
//
//  SphereMenu.m
//  SphereMenu
//
//  Created by Tu You on 14-8-24.
//  Copyright (c) 2014年 TU YOU. All rights reserved.
//

#import "SphereMenu.h"

static const int kItemInitTag = 1001;
static const CGFloat kAngleOffset = M_PI_2 / 2;
static const CGFloat kSphereLength = 80;
static const float kSphereDamping = 0.3;

@interface SphereMenu () <UICollisionBehaviorDelegate>

@property (nonatomic, assign) NSUInteger count ;
@property (nonatomic, strong) UIImageView *start;
@property (nonatomic, strong) NSArray *images;
@property (nonatomic, strong) NSMutableArray *items;
@property (nonatomic, strong) NSMutableArray *positions;

// animator and behaviors
@property (nonatomic, strong) UIDynamicAnimator *animator;
@property (nonatomic, strong) UICollisionBehavior *collision;
@property (nonatomic, strong) UIDynamicItemBehavior *itemBehavior;
@property (nonatomic, strong) NSMutableArray *snaps;

@property (nonatomic, strong) UITapGestureRecognizer *tapOnStart;

@property (nonatomic, strong) id<UIDynamicItem> bumper;
@property (nonatomic, assign) BOOL expanded;

@end


@implementation SphereMenu

- (instancetype)initWithStartPoint:(CGPoint)startPoint startImage:(UIImage *)startImage submenuImages:(NSArray *)images
{
    if (self = [super init]) {
        
        self.bounds = CGRectMake(0, 0, startImage.size.width, startImage.size.height);
        self.center = startPoint;
        
        _angle = kAngleOffset;
        _sphereLength = kSphereLength;
        _sphereDamping = kSphereDamping;
        
        _images = images;
        _count = self.images.count;
        _start = [[UIImageView alloc] initWithImage:startImage];
        _start.userInteractionEnabled = YES;
        _tapOnStart = [[UITapGestureRecognizer alloc] initWithTarget:self
                                                                  action:@selector(startTapped:)];
        [_start addGestureRecognizer:_tapOnStart];
        [self addSubview:_start];
    }
    return self;
}

- (void)commonSetup
{
    self.items = [NSMutableArray array];
    self.positions = [NSMutableArray array];
    self.snaps = [NSMutableArray array];

    // setup the items
    for (int i = 0; i < self.count; i++) {
        UIImageView *item = [[UIImageView alloc] initWithImage:self.images[i]];
        item.tag = kItemInitTag + i;
        item.userInteractionEnabled = YES;
        [self.superview addSubview:item];
        
        CGPoint position = [self centerForSphereAtIndex:i];
        item.center = self.center;
        [self.positions addObject:[NSValue valueWithCGPoint:position]];
        
        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapped:)];
        [item addGestureRecognizer:tap];
        
        UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panned:)];
        [item addGestureRecognizer:pan];
        
        [self.items addObject:item];
    }
    
    [self.superview bringSubviewToFront:self];
    
    // setup animator and behavior
    self.animator = [[UIDynamicAnimator alloc] initWithReferenceView:self.superview];
    
    self.collision = [[UICollisionBehavior alloc] initWithItems:self.items];
    self.collision.translatesReferenceBoundsIntoBoundary = YES;
    self.collision.collisionDelegate = self;
    
    for (int i = 0; i < self.count; i++) {
        UISnapBehavior *snap = [[UISnapBehavior alloc] initWithItem:self.items[i] snapToPoint:self.center];
        snap.damping = self.sphereDamping;
        [self.snaps addObject:snap];
    }
    
    self.itemBehavior = [[UIDynamicItemBehavior alloc] initWithItems:self.items];
    self.itemBehavior.allowsRotation = NO;
    self.itemBehavior.elasticity = 1.2;
    self.itemBehavior.density = 0.5;
    self.itemBehavior.angularResistance = 5;
    self.itemBehavior.resistance = 10;
    self.itemBehavior.elasticity = 0.8;
    self.itemBehavior.friction = 0.5;
}

- (void)didMoveToSuperview
{
    [self commonSetup];
}

- (void)removeFromSuperview
{
    for (int i = 0; i < self.count; i++) {
        [self.items[i] removeFromSuperview];
    }
    
    [super removeFromSuperview];
}

- (CGPoint)centerForSphereAtIndex:(int)index
{
    CGFloat firstAngle = M_PI + (M_PI_2 - self.angle) + index * self.angle;
    CGPoint startPoint = self.center;
    CGFloat x = startPoint.x + cos(firstAngle) * self.sphereLength;
    CGFloat y = startPoint.y + sin(firstAngle) * self.sphereLength;
    CGPoint position = CGPointMake(x, y);
    return position;
}

- (void)tapped:(UITapGestureRecognizer *)gesture
{
    if ([self.delegate respondsToSelector:@selector(sphereDidSelected:)]) {
        int tag = (int)gesture.view.tag;
        tag -= kItemInitTag;
        [self.delegate sphereDidSelected:tag];
    }
    
    [self shrinkSubmenu];
}

- (void)startTapped:(UITapGestureRecognizer *)gesture
{
    [self.animator removeBehavior:self.collision];
    [self.animator removeBehavior:self.itemBehavior];
    [self removeSnapBehaviors];
    
    if (self.expanded) {
        [self shrinkSubmenu];
    } else {
        [self expandSubmenu];
    }
}

- (void)expandSubmenu
{
    for (int i = 0; i < self.count; i++) {
        [self snapToPostionsWithIndex:i];
    }
    
    self.expanded = YES;
}

- (void)shrinkSubmenu
{
    [self.animator removeBehavior:self.collision];
    
    for (int i = 0; i < self.count; i++) {
        [self snapToStartWithIndex:i];
    }
    
    self.expanded = NO;
}

- (void)panned:(UIPanGestureRecognizer *)gesture
{
    UIView *touchedView = gesture.view;
    if (gesture.state == UIGestureRecognizerStateBegan) {
        [self.animator removeBehavior:self.itemBehavior];
        [self.animator removeBehavior:self.collision];
        [self removeSnapBehaviors];
    } else if (gesture.state == UIGestureRecognizerStateChanged) {
        touchedView.center = [gesture locationInView:self.superview];
    } else if (gesture.state == UIGestureRecognizerStateEnded) {
        self.bumper = touchedView;
        [self.animator addBehavior:self.collision];
        NSUInteger index = [self.items indexOfObject:touchedView];
        
        if (index != NSNotFound) {
            [self snapToPostionsWithIndex:index];
        }
    }
}

- (void)collisionBehavior:(UICollisionBehavior *)behavior endedContactForItem:(id<UIDynamicItem>)item1 withItem:(id<UIDynamicItem>)item2
{
    [self.animator addBehavior:self.itemBehavior];
    
    if (item1 != self.bumper) {
        NSUInteger index = (int)[self.items indexOfObject:item1];
        if (index != NSNotFound) {
            [self snapToPostionsWithIndex:index];
        }
    }
    
    if (item2 != self.bumper) {
        NSUInteger index = (int)[self.items indexOfObject:item2];
        if (index != NSNotFound) {
            [self snapToPostionsWithIndex:index];
        }
    }
}

- (void)snapToStartWithIndex:(NSUInteger)index
{
    UISnapBehavior *snap = [[UISnapBehavior alloc] initWithItem:self.items[index] snapToPoint:self.center];
    snap.damping = self.sphereDamping;
    UISnapBehavior *snapToRemove = self.snaps[index];
    self.snaps[index] = snap;
    [self.animator removeBehavior:snapToRemove];
    [self.animator addBehavior:snap];
}

- (void)snapToPostionsWithIndex:(NSUInteger)index
{
    id positionValue = self.positions[index];
    CGPoint position = [positionValue CGPointValue];
    UISnapBehavior *snap = [[UISnapBehavior alloc] initWithItem:self.items[index] snapToPoint:position];
    snap.damping = self.sphereDamping;
    UISnapBehavior *snapToRemove = self.snaps[index];
    self.snaps[index] = snap;
    [self.animator removeBehavior:snapToRemove];
    [self.animator addBehavior:snap];
}

- (void)removeSnapBehaviors
{
    [self.snaps enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
        [self.animator removeBehavior:obj];
    }];
}

@end


================================================
FILE: SphereMenu/SphereMenu-Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleDisplayName</key>
	<string>${PRODUCT_NAME}</string>
	<key>CFBundleExecutable</key>
	<string>${EXECUTABLE_NAME}</string>
	<key>CFBundleIdentifier</key>
	<string>com.tuyou.${PRODUCT_NAME:rfc1034identifier}</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>${PRODUCT_NAME}</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>1.0</string>
	<key>LSRequiresIPhoneOS</key>
	<true/>
	<key>UILaunchStoryboardName</key>
	<string>Launch Screen</string>
	<key>UIMainStoryboardFile</key>
	<string>Main_iPhone</string>
	<key>UIMainStoryboardFile~ipad</key>
	<string>Main_iPad</string>
	<key>UIRequiredDeviceCapabilities</key>
	<array>
		<string>armv7</string>
	</array>
	<key>UISupportedInterfaceOrientations</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
	<key>UISupportedInterfaceOrientations~ipad</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationPortraitUpsideDown</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
</dict>
</plist>


================================================
FILE: SphereMenu/SphereMenu-Prefix.pch
================================================
//
//  Prefix header
//
//  The contents of this file are implicitly included at the beginning of every source file.
//

#import <Availability.h>

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

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
#endif


================================================
FILE: SphereMenu/ViewController.h
================================================
//
//  ViewController.h
//  SphereMenu
//
//  Created by Tu You on 14-8-24.
//  Copyright (c) 2014年 TU YOU. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController

@end


================================================
FILE: SphereMenu/ViewController.m
================================================
//
//  ViewController.m
//  SphereMenu
//
//  Created by Tu You on 14-8-24.
//  Copyright (c) 2014年 TU YOU. All rights reserved.
//

#import "ViewController.h"
#import "SphereMenu.h"

@interface ViewController () <SphereMenuDelegate>

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor colorWithRed:1 green:0.58 blue:0.27 alpha:1];
    
    UIImage *startImage = [UIImage imageNamed:@"start"];
    UIImage *image1 = [UIImage imageNamed:@"icon-twitter"];
    UIImage *image2 = [UIImage imageNamed:@"icon-email"];
    UIImage *image3 = [UIImage imageNamed:@"icon-facebook"];
    NSArray *images = @[image1, image2, image3];
    SphereMenu *sphereMenu = [[SphereMenu alloc] initWithStartPoint:CGPointMake(CGRectGetWidth(self.view.frame) / 2, 320)
                                                         startImage:startImage
                                                      submenuImages:images];
    sphereMenu.sphereDamping = 0.3;
    sphereMenu.sphereLength = 85;
    sphereMenu.delegate = self;
    [self.view addSubview:sphereMenu];
}

- (void)sphereDidSelected:(int)index
{
    NSLog(@"sphere %d selected", index);
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

- (UIStatusBarStyle)preferredStatusBarStyle
{
    return UIStatusBarStyleLightContent;
}

@end


================================================
FILE: SphereMenu/en.lproj/InfoPlist.strings
================================================
/* Localized versions of Info.plist keys */



================================================
FILE: SphereMenu/main.m
================================================
//
//  main.m
//  SphereMenu
//
//  Created by Tu You on 14-8-24.
//  Copyright (c) 2014年 TU YOU. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "AppDelegate.h"

int main(int argc, char * argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}


================================================
FILE: SphereMenu.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
	archiveVersion = 1;
	classes = {
	};
	objectVersion = 46;
	objects = {

/* Begin PBXBuildFile section */
		CB98A1C11A75CFA6006378C2 /* Launch Screen.xib in Resources */ = {isa = PBXBuildFile; fileRef = CB98A1C01A75CFA6006378C2 /* Launch Screen.xib */; };
		CBEE2F9B19AA323700461BDB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBEE2F9A19AA323700461BDB /* Foundation.framework */; };
		CBEE2F9D19AA323700461BDB /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBEE2F9C19AA323700461BDB /* CoreGraphics.framework */; };
		CBEE2F9F19AA323700461BDB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBEE2F9E19AA323700461BDB /* UIKit.framework */; };
		CBEE2FA519AA323700461BDB /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = CBEE2FA319AA323700461BDB /* InfoPlist.strings */; };
		CBEE2FA719AA323700461BDB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CBEE2FA619AA323700461BDB /* main.m */; };
		CBEE2FAB19AA323700461BDB /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CBEE2FAA19AA323700461BDB /* AppDelegate.m */; };
		CBEE2FAE19AA323700461BDB /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CBEE2FAC19AA323700461BDB /* Main_iPhone.storyboard */; };
		CBEE2FB119AA323700461BDB /* Main_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CBEE2FAF19AA323700461BDB /* Main_iPad.storyboard */; };
		CBEE2FB419AA323700461BDB /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CBEE2FB319AA323700461BDB /* ViewController.m */; };
		CBEE2FB619AA323700461BDB /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CBEE2FB519AA323700461BDB /* Images.xcassets */; };
		CBEE2FBD19AA323700461BDB /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBEE2FBC19AA323700461BDB /* XCTest.framework */; };
		CBEE2FBE19AA323700461BDB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBEE2F9A19AA323700461BDB /* Foundation.framework */; };
		CBEE2FBF19AA323700461BDB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBEE2F9E19AA323700461BDB /* UIKit.framework */; };
		CBEE2FC719AA323700461BDB /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = CBEE2FC519AA323700461BDB /* InfoPlist.strings */; };
		CBEE2FC919AA323700461BDB /* SphereMenuTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CBEE2FC819AA323700461BDB /* SphereMenuTests.m */; };
		CBEE2FD519AA338100461BDB /* SphereMenu.m in Sources */ = {isa = PBXBuildFile; fileRef = CBEE2FD419AA338100461BDB /* SphereMenu.m */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
		CBEE2FC019AA323700461BDB /* PBXContainerItemProxy */ = {
			isa = PBXContainerItemProxy;
			containerPortal = CBEE2F8F19AA323600461BDB /* Project object */;
			proxyType = 1;
			remoteGlobalIDString = CBEE2F9619AA323700461BDB;
			remoteInfo = SphereMenu;
		};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
		CB98A1C01A75CFA6006378C2 /* Launch Screen.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = "Launch Screen.xib"; sourceTree = "<group>"; };
		CBEE2F9719AA323700461BDB /* SphereMenu.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SphereMenu.app; sourceTree = BUILT_PRODUCTS_DIR; };
		CBEE2F9A19AA323700461BDB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
		CBEE2F9C19AA323700461BDB /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
		CBEE2F9E19AA323700461BDB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
		CBEE2FA219AA323700461BDB /* SphereMenu-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SphereMenu-Info.plist"; sourceTree = "<group>"; };
		CBEE2FA419AA323700461BDB /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
		CBEE2FA619AA323700461BDB /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
		CBEE2FA819AA323700461BDB /* SphereMenu-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SphereMenu-Prefix.pch"; sourceTree = "<group>"; };
		CBEE2FA919AA323700461BDB /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
		CBEE2FAA19AA323700461BDB /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
		CBEE2FAD19AA323700461BDB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPhone.storyboard; sourceTree = "<group>"; };
		CBEE2FB019AA323700461BDB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPad.storyboard; sourceTree = "<group>"; };
		CBEE2FB219AA323700461BDB /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
		CBEE2FB319AA323700461BDB /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
		CBEE2FB519AA323700461BDB /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
		CBEE2FBB19AA323700461BDB /* SphereMenuTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SphereMenuTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
		CBEE2FBC19AA323700461BDB /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
		CBEE2FC419AA323700461BDB /* SphereMenuTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SphereMenuTests-Info.plist"; sourceTree = "<group>"; };
		CBEE2FC619AA323700461BDB /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
		CBEE2FC819AA323700461BDB /* SphereMenuTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SphereMenuTests.m; sourceTree = "<group>"; };
		CBEE2FD319AA338100461BDB /* SphereMenu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SphereMenu.h; sourceTree = "<group>"; };
		CBEE2FD419AA338100461BDB /* SphereMenu.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SphereMenu.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
		CBEE2F9419AA323700461BDB /* Frameworks */ = {
			isa = PBXFrameworksBuildPhase;
			buildActionMask = 2147483647;
			files = (
				CBEE2F9D19AA323700461BDB /* CoreGraphics.framework in Frameworks */,
				CBEE2F9F19AA323700461BDB /* UIKit.framework in Frameworks */,
				CBEE2F9B19AA323700461BDB /* Foundation.framework in Frameworks */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
		CBEE2FB819AA323700461BDB /* Frameworks */ = {
			isa = PBXFrameworksBuildPhase;
			buildActionMask = 2147483647;
			files = (
				CBEE2FBD19AA323700461BDB /* XCTest.framework in Frameworks */,
				CBEE2FBF19AA323700461BDB /* UIKit.framework in Frameworks */,
				CBEE2FBE19AA323700461BDB /* Foundation.framework in Frameworks */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
		CBEE2F8E19AA323600461BDB = {
			isa = PBXGroup;
			children = (
				CBEE2FA019AA323700461BDB /* SphereMenu */,
				CBEE2FC219AA323700461BDB /* SphereMenuTests */,
				CBEE2F9919AA323700461BDB /* Frameworks */,
				CBEE2F9819AA323700461BDB /* Products */,
			);
			sourceTree = "<group>";
		};
		CBEE2F9819AA323700461BDB /* Products */ = {
			isa = PBXGroup;
			children = (
				CBEE2F9719AA323700461BDB /* SphereMenu.app */,
				CBEE2FBB19AA323700461BDB /* SphereMenuTests.xctest */,
			);
			name = Products;
			sourceTree = "<group>";
		};
		CBEE2F9919AA323700461BDB /* Frameworks */ = {
			isa = PBXGroup;
			children = (
				CBEE2F9A19AA323700461BDB /* Foundation.framework */,
				CBEE2F9C19AA323700461BDB /* CoreGraphics.framework */,
				CBEE2F9E19AA323700461BDB /* UIKit.framework */,
				CBEE2FBC19AA323700461BDB /* XCTest.framework */,
			);
			name = Frameworks;
			sourceTree = "<group>";
		};
		CBEE2FA019AA323700461BDB /* SphereMenu */ = {
			isa = PBXGroup;
			children = (
				CBEE2FD219AA325C00461BDB /* SphereMenu */,
				CBEE2FA919AA323700461BDB /* AppDelegate.h */,
				CBEE2FAA19AA323700461BDB /* AppDelegate.m */,
				CBEE2FAC19AA323700461BDB /* Main_iPhone.storyboard */,
				CBEE2FAF19AA323700461BDB /* Main_iPad.storyboard */,
				CBEE2FB219AA323700461BDB /* ViewController.h */,
				CBEE2FB319AA323700461BDB /* ViewController.m */,
				CBEE2FB519AA323700461BDB /* Images.xcassets */,
				CBEE2FA119AA323700461BDB /* Supporting Files */,
				CB98A1C01A75CFA6006378C2 /* Launch Screen.xib */,
			);
			path = SphereMenu;
			sourceTree = "<group>";
		};
		CBEE2FA119AA323700461BDB /* Supporting Files */ = {
			isa = PBXGroup;
			children = (
				CBEE2FA219AA323700461BDB /* SphereMenu-Info.plist */,
				CBEE2FA319AA323700461BDB /* InfoPlist.strings */,
				CBEE2FA619AA323700461BDB /* main.m */,
				CBEE2FA819AA323700461BDB /* SphereMenu-Prefix.pch */,
			);
			name = "Supporting Files";
			sourceTree = "<group>";
		};
		CBEE2FC219AA323700461BDB /* SphereMenuTests */ = {
			isa = PBXGroup;
			children = (
				CBEE2FC819AA323700461BDB /* SphereMenuTests.m */,
				CBEE2FC319AA323700461BDB /* Supporting Files */,
			);
			path = SphereMenuTests;
			sourceTree = "<group>";
		};
		CBEE2FC319AA323700461BDB /* Supporting Files */ = {
			isa = PBXGroup;
			children = (
				CBEE2FC419AA323700461BDB /* SphereMenuTests-Info.plist */,
				CBEE2FC519AA323700461BDB /* InfoPlist.strings */,
			);
			name = "Supporting Files";
			sourceTree = "<group>";
		};
		CBEE2FD219AA325C00461BDB /* SphereMenu */ = {
			isa = PBXGroup;
			children = (
				CBEE2FD319AA338100461BDB /* SphereMenu.h */,
				CBEE2FD419AA338100461BDB /* SphereMenu.m */,
			);
			path = SphereMenu;
			sourceTree = "<group>";
		};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
		CBEE2F9619AA323700461BDB /* SphereMenu */ = {
			isa = PBXNativeTarget;
			buildConfigurationList = CBEE2FCC19AA323700461BDB /* Build configuration list for PBXNativeTarget "SphereMenu" */;
			buildPhases = (
				CBEE2F9319AA323700461BDB /* Sources */,
				CBEE2F9419AA323700461BDB /* Frameworks */,
				CBEE2F9519AA323700461BDB /* Resources */,
			);
			buildRules = (
			);
			dependencies = (
			);
			name = SphereMenu;
			productName = SphereMenu;
			productReference = CBEE2F9719AA323700461BDB /* SphereMenu.app */;
			productType = "com.apple.product-type.application";
		};
		CBEE2FBA19AA323700461BDB /* SphereMenuTests */ = {
			isa = PBXNativeTarget;
			buildConfigurationList = CBEE2FCF19AA323700461BDB /* Build configuration list for PBXNativeTarget "SphereMenuTests" */;
			buildPhases = (
				CBEE2FB719AA323700461BDB /* Sources */,
				CBEE2FB819AA323700461BDB /* Frameworks */,
				CBEE2FB919AA323700461BDB /* Resources */,
			);
			buildRules = (
			);
			dependencies = (
				CBEE2FC119AA323700461BDB /* PBXTargetDependency */,
			);
			name = SphereMenuTests;
			productName = SphereMenuTests;
			productReference = CBEE2FBB19AA323700461BDB /* SphereMenuTests.xctest */;
			productType = "com.apple.product-type.bundle.unit-test";
		};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
		CBEE2F8F19AA323600461BDB /* Project object */ = {
			isa = PBXProject;
			attributes = {
				LastUpgradeCheck = 0510;
				ORGANIZATIONNAME = "TU YOU";
				TargetAttributes = {
					CBEE2FBA19AA323700461BDB = {
						TestTargetID = CBEE2F9619AA323700461BDB;
					};
				};
			};
			buildConfigurationList = CBEE2F9219AA323700461BDB /* Build configuration list for PBXProject "SphereMenu" */;
			compatibilityVersion = "Xcode 3.2";
			developmentRegion = English;
			hasScannedForEncodings = 0;
			knownRegions = (
				en,
				Base,
			);
			mainGroup = CBEE2F8E19AA323600461BDB;
			productRefGroup = CBEE2F9819AA323700461BDB /* Products */;
			projectDirPath = "";
			projectRoot = "";
			targets = (
				CBEE2F9619AA323700461BDB /* SphereMenu */,
				CBEE2FBA19AA323700461BDB /* SphereMenuTests */,
			);
		};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
		CBEE2F9519AA323700461BDB /* Resources */ = {
			isa = PBXResourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				CBEE2FB119AA323700461BDB /* Main_iPad.storyboard in Resources */,
				CBEE2FB619AA323700461BDB /* Images.xcassets in Resources */,
				CBEE2FAE19AA323700461BDB /* Main_iPhone.storyboard in Resources */,
				CBEE2FA519AA323700461BDB /* InfoPlist.strings in Resources */,
				CB98A1C11A75CFA6006378C2 /* Launch Screen.xib in Resources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
		CBEE2FB919AA323700461BDB /* Resources */ = {
			isa = PBXResourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				CBEE2FC719AA323700461BDB /* InfoPlist.strings in Resources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
		CBEE2F9319AA323700461BDB /* Sources */ = {
			isa = PBXSourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				CBEE2FB419AA323700461BDB /* ViewController.m in Sources */,
				CBEE2FAB19AA323700461BDB /* AppDelegate.m in Sources */,
				CBEE2FA719AA323700461BDB /* main.m in Sources */,
				CBEE2FD519AA338100461BDB /* SphereMenu.m in Sources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
		CBEE2FB719AA323700461BDB /* Sources */ = {
			isa = PBXSourcesBuildPhase;
			buildActionMask = 2147483647;
			files = (
				CBEE2FC919AA323700461BDB /* SphereMenuTests.m in Sources */,
			);
			runOnlyForDeploymentPostprocessing = 0;
		};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
		CBEE2FC119AA323700461BDB /* PBXTargetDependency */ = {
			isa = PBXTargetDependency;
			target = CBEE2F9619AA323700461BDB /* SphereMenu */;
			targetProxy = CBEE2FC019AA323700461BDB /* PBXContainerItemProxy */;
		};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
		CBEE2FA319AA323700461BDB /* InfoPlist.strings */ = {
			isa = PBXVariantGroup;
			children = (
				CBEE2FA419AA323700461BDB /* en */,
			);
			name = InfoPlist.strings;
			sourceTree = "<group>";
		};
		CBEE2FAC19AA323700461BDB /* Main_iPhone.storyboard */ = {
			isa = PBXVariantGroup;
			children = (
				CBEE2FAD19AA323700461BDB /* Base */,
			);
			name = Main_iPhone.storyboard;
			sourceTree = "<group>";
		};
		CBEE2FAF19AA323700461BDB /* Main_iPad.storyboard */ = {
			isa = PBXVariantGroup;
			children = (
				CBEE2FB019AA323700461BDB /* Base */,
			);
			name = Main_iPad.storyboard;
			sourceTree = "<group>";
		};
		CBEE2FC519AA323700461BDB /* InfoPlist.strings */ = {
			isa = PBXVariantGroup;
			children = (
				CBEE2FC619AA323700461BDB /* en */,
			);
			name = InfoPlist.strings;
			sourceTree = "<group>";
		};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
		CBEE2FCA19AA323700461BDB /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
				CLANG_CXX_LIBRARY = "libc++";
				CLANG_ENABLE_MODULES = YES;
				CLANG_ENABLE_OBJC_ARC = YES;
				CLANG_WARN_BOOL_CONVERSION = YES;
				CLANG_WARN_CONSTANT_CONVERSION = YES;
				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
				CLANG_WARN_EMPTY_BODY = YES;
				CLANG_WARN_ENUM_CONVERSION = YES;
				CLANG_WARN_INT_CONVERSION = YES;
				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
				COPY_PHASE_STRIP = NO;
				GCC_C_LANGUAGE_STANDARD = gnu99;
				GCC_DYNAMIC_NO_PIC = NO;
				GCC_OPTIMIZATION_LEVEL = 0;
				GCC_PREPROCESSOR_DEFINITIONS = (
					"DEBUG=1",
					"$(inherited)",
				);
				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
				GCC_WARN_UNDECLARED_SELECTOR = YES;
				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
				GCC_WARN_UNUSED_FUNCTION = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				IPHONEOS_DEPLOYMENT_TARGET = 7.1;
				ONLY_ACTIVE_ARCH = YES;
				SDKROOT = iphoneos;
				TARGETED_DEVICE_FAMILY = "1,2";
			};
			name = Debug;
		};
		CBEE2FCB19AA323700461BDB /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
				CLANG_CXX_LIBRARY = "libc++";
				CLANG_ENABLE_MODULES = YES;
				CLANG_ENABLE_OBJC_ARC = YES;
				CLANG_WARN_BOOL_CONVERSION = YES;
				CLANG_WARN_CONSTANT_CONVERSION = YES;
				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
				CLANG_WARN_EMPTY_BODY = YES;
				CLANG_WARN_ENUM_CONVERSION = YES;
				CLANG_WARN_INT_CONVERSION = YES;
				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
				COPY_PHASE_STRIP = YES;
				ENABLE_NS_ASSERTIONS = NO;
				GCC_C_LANGUAGE_STANDARD = gnu99;
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
				GCC_WARN_UNDECLARED_SELECTOR = YES;
				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
				GCC_WARN_UNUSED_FUNCTION = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				IPHONEOS_DEPLOYMENT_TARGET = 7.1;
				SDKROOT = iphoneos;
				TARGETED_DEVICE_FAMILY = "1,2";
				VALIDATE_PRODUCT = YES;
			};
			name = Release;
		};
		CBEE2FCD19AA323700461BDB /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
				GCC_PRECOMPILE_PREFIX_HEADER = YES;
				GCC_PREFIX_HEADER = "SphereMenu/SphereMenu-Prefix.pch";
				INFOPLIST_FILE = "SphereMenu/SphereMenu-Info.plist";
				PRODUCT_NAME = "$(TARGET_NAME)";
				WRAPPER_EXTENSION = app;
			};
			name = Debug;
		};
		CBEE2FCE19AA323700461BDB /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
				GCC_PRECOMPILE_PREFIX_HEADER = YES;
				GCC_PREFIX_HEADER = "SphereMenu/SphereMenu-Prefix.pch";
				INFOPLIST_FILE = "SphereMenu/SphereMenu-Info.plist";
				PRODUCT_NAME = "$(TARGET_NAME)";
				WRAPPER_EXTENSION = app;
			};
			name = Release;
		};
		CBEE2FD019AA323700461BDB /* Debug */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SphereMenu.app/SphereMenu";
				FRAMEWORK_SEARCH_PATHS = (
					"$(SDKROOT)/Developer/Library/Frameworks",
					"$(inherited)",
					"$(DEVELOPER_FRAMEWORKS_DIR)",
				);
				GCC_PRECOMPILE_PREFIX_HEADER = YES;
				GCC_PREFIX_HEADER = "SphereMenu/SphereMenu-Prefix.pch";
				GCC_PREPROCESSOR_DEFINITIONS = (
					"DEBUG=1",
					"$(inherited)",
				);
				INFOPLIST_FILE = "SphereMenuTests/SphereMenuTests-Info.plist";
				PRODUCT_NAME = "$(TARGET_NAME)";
				TEST_HOST = "$(BUNDLE_LOADER)";
				WRAPPER_EXTENSION = xctest;
			};
			name = Debug;
		};
		CBEE2FD119AA323700461BDB /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SphereMenu.app/SphereMenu";
				FRAMEWORK_SEARCH_PATHS = (
					"$(SDKROOT)/Developer/Library/Frameworks",
					"$(inherited)",
					"$(DEVELOPER_FRAMEWORKS_DIR)",
				);
				GCC_PRECOMPILE_PREFIX_HEADER = YES;
				GCC_PREFIX_HEADER = "SphereMenu/SphereMenu-Prefix.pch";
				INFOPLIST_FILE = "SphereMenuTests/SphereMenuTests-Info.plist";
				PRODUCT_NAME = "$(TARGET_NAME)";
				TEST_HOST = "$(BUNDLE_LOADER)";
				WRAPPER_EXTENSION = xctest;
			};
			name = Release;
		};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
		CBEE2F9219AA323700461BDB /* Build configuration list for PBXProject "SphereMenu" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				CBEE2FCA19AA323700461BDB /* Debug */,
				CBEE2FCB19AA323700461BDB /* Release */,
			);
			defaultConfigurationIsVisible = 0;
			defaultConfigurationName = Release;
		};
		CBEE2FCC19AA323700461BDB /* Build configuration list for PBXNativeTarget "SphereMenu" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				CBEE2FCD19AA323700461BDB /* Debug */,
				CBEE2FCE19AA323700461BDB /* Release */,
			);
			defaultConfigurationIsVisible = 0;
			defaultConfigurationName = Release;
		};
		CBEE2FCF19AA323700461BDB /* Build configuration list for PBXNativeTarget "SphereMenuTests" */ = {
			isa = XCConfigurationList;
			buildConfigurations = (
				CBEE2FD019AA323700461BDB /* Debug */,
				CBEE2FD119AA323700461BDB /* Release */,
			);
			defaultConfigurationIsVisible = 0;
			defaultConfigurationName = Release;
		};
/* End XCConfigurationList section */
	};
	rootObject = CBEE2F8F19AA323600461BDB /* Project object */;
}


================================================
FILE: SphereMenu.xcodeproj/project.xcworkspace/contents.xcworkspacedata
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
   version = "1.0">
   <FileRef
      location = "self:SphereMenu.xcodeproj">
   </FileRef>
</Workspace>


================================================
FILE: SphereMenu.xcodeproj/project.xcworkspace/xcshareddata/SphereMenu.xccheckout
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>IDESourceControlProjectFavoriteDictionaryKey</key>
	<false/>
	<key>IDESourceControlProjectIdentifier</key>
	<string>D74E715F-09C1-4AB9-A5A3-F039E3F29C3C</string>
	<key>IDESourceControlProjectName</key>
	<string>SphereMenu</string>
	<key>IDESourceControlProjectOriginsDictionary</key>
	<dict>
		<key>32704FBC98C62B87AB408B5578AA0ADD9E778FAF</key>
		<string>https://github.com/itouch2/SphereMenu.git</string>
	</dict>
	<key>IDESourceControlProjectPath</key>
	<string>SphereMenu.xcodeproj/project.xcworkspace</string>
	<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
	<dict>
		<key>32704FBC98C62B87AB408B5578AA0ADD9E778FAF</key>
		<string>../..</string>
	</dict>
	<key>IDESourceControlProjectURL</key>
	<string>https://github.com/itouch2/SphereMenu.git</string>
	<key>IDESourceControlProjectVersion</key>
	<integer>111</integer>
	<key>IDESourceControlProjectWCCIdentifier</key>
	<string>32704FBC98C62B87AB408B5578AA0ADD9E778FAF</string>
	<key>IDESourceControlProjectWCConfigurations</key>
	<array>
		<dict>
			<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
			<string>public.vcs.git</string>
			<key>IDESourceControlWCCIdentifierKey</key>
			<string>32704FBC98C62B87AB408B5578AA0ADD9E778FAF</string>
			<key>IDESourceControlWCCName</key>
			<string>SphereMenu</string>
		</dict>
	</array>
</dict>
</plist>


================================================
FILE: SphereMenu.xcodeproj/xcuserdata/Chandler.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
   type = "1"
   version = "2.0">
   <Breakpoints>
      <BreakpointProxy
         BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
         <BreakpointContent
            shouldBeEnabled = "Yes"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            scope = "0"
            stopOnStyle = "0">
         </BreakpointContent>
      </BreakpointProxy>
      <BreakpointProxy
         BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
         <BreakpointContent
            shouldBeEnabled = "No"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            scope = "0"
            stopOnStyle = "0">
         </BreakpointContent>
      </BreakpointProxy>
      <BreakpointProxy
         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
         <BreakpointContent
            shouldBeEnabled = "Yes"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "SphereMenu/SphereMenu/SphereMenu.m"
            timestampString = "443928495.367858"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "234"
            endingLineNumber = "234"
            landmarkName = "-snapToPostionsWithIndex:"
            landmarkType = "5">
         </BreakpointContent>
      </BreakpointProxy>
      <BreakpointProxy
         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
         <BreakpointContent
            shouldBeEnabled = "Yes"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "SphereMenu/SphereMenu/SphereMenu.m"
            timestampString = "443928495.367858"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "227"
            endingLineNumber = "227"
            landmarkName = "-snapToStartWithIndex:"
            landmarkType = "5">
         </BreakpointContent>
      </BreakpointProxy>
   </Breakpoints>
</Bucket>


================================================
FILE: SphereMenu.xcodeproj/xcuserdata/Chandler.xcuserdatad/xcschemes/SphereMenu.xcscheme
================================================
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
   LastUpgradeVersion = "0510"
   version = "1.3">
   <BuildAction
      parallelizeBuildables = "YES"
      buildImplicitDependencies = "YES">
      <BuildActionEntries>
         <BuildActionEntry
            buildForTesting = "YES"
            buildForRunning = "YES"
            buildForProfiling = "YES"
            buildForArchiving = "YES"
            buildForAnalyzing = "YES">
            <BuildableReference
               BuildableIdentifier = "primary"
               BlueprintIdentifier = "CBEE2F9619AA323700461BDB"
               BuildableName = "SphereMenu.app"
               BlueprintName = "SphereMenu"
               ReferencedContainer = "container:SphereMenu.xcodeproj">
            </BuildableReference>
         </BuildActionEntry>
      </BuildActionEntries>
   </BuildAction>
   <TestAction
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
      shouldUseLaunchSchemeArgsEnv = "YES"
      buildConfiguration = "Debug">
      <Testables>
         <TestableReference
            skipped = "NO">
            <BuildableReference
               BuildableIdentifier = "primary"
               BlueprintIdentifier = "CBEE2FBA19AA323700461BDB"
               BuildableName = "SphereMenuTests.xctest"
               BlueprintName = "SphereMenuTests"
               ReferencedContainer = "container:SphereMenu.xcodeproj">
            </BuildableReference>
         </TestableReference>
      </Testables>
      <MacroExpansion>
         <BuildableReference
            BuildableIdentifier = "primary"
            BlueprintIdentifier = "CBEE2F9619AA323700461BDB"
            BuildableName = "SphereMenu.app"
            BlueprintName = "SphereMenu"
            ReferencedContainer = "container:SphereMenu.xcodeproj">
         </BuildableReference>
      </MacroExpansion>
   </TestAction>
   <LaunchAction
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
      launchStyle = "0"
      useCustomWorkingDirectory = "NO"
      buildConfiguration = "Debug"
      ignoresPersistentStateOnLaunch = "NO"
      debugDocumentVersioning = "YES"
      allowLocationSimulation = "YES">
      <BuildableProductRunnable>
         <BuildableReference
            BuildableIdentifier = "primary"
            BlueprintIdentifier = "CBEE2F9619AA323700461BDB"
            BuildableName = "SphereMenu.app"
            BlueprintName = "SphereMenu"
            ReferencedContainer = "container:SphereMenu.xcodeproj">
         </BuildableReference>
      </BuildableProductRunnable>
      <AdditionalOptions>
      </AdditionalOptions>
   </LaunchAction>
   <ProfileAction
      shouldUseLaunchSchemeArgsEnv = "YES"
      savedToolIdentifier = ""
      useCustomWorkingDirectory = "NO"
      buildConfiguration = "Release"
      debugDocumentVersioning = "YES">
      <BuildableProductRunnable>
         <BuildableReference
            BuildableIdentifier = "primary"
            BlueprintIdentifier = "CBEE2F9619AA323700461BDB"
            BuildableName = "SphereMenu.app"
            BlueprintName = "SphereMenu"
            ReferencedContainer = "container:SphereMenu.xcodeproj">
         </BuildableReference>
      </BuildableProductRunnable>
   </ProfileAction>
   <AnalyzeAction
      buildConfiguration = "Debug">
   </AnalyzeAction>
   <ArchiveAction
      buildConfiguration = "Release"
      revealArchiveInOrganizer = "YES">
   </ArchiveAction>
</Scheme>


================================================
FILE: SphereMenu.xcodeproj/xcuserdata/Chandler.xcuserdatad/xcschemes/xcschememanagement.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>SchemeUserState</key>
	<dict>
		<key>SphereMenu.xcscheme</key>
		<dict>
			<key>orderHint</key>
			<integer>0</integer>
		</dict>
	</dict>
	<key>SuppressBuildableAutocreation</key>
	<dict>
		<key>CBEE2F9619AA323700461BDB</key>
		<dict>
			<key>primary</key>
			<true/>
		</dict>
		<key>CBEE2FBA19AA323700461BDB</key>
		<dict>
			<key>primary</key>
			<true/>
		</dict>
	</dict>
</dict>
</plist>


================================================
FILE: SphereMenuTests/SphereMenuTests-Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleExecutable</key>
	<string>${EXECUTABLE_NAME}</string>
	<key>CFBundleIdentifier</key>
	<string>com.tuyou.${PRODUCT_NAME:rfc1034identifier}</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundlePackageType</key>
	<string>BNDL</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>1</string>
</dict>
</plist>


================================================
FILE: SphereMenuTests/SphereMenuTests.m
================================================
//
//  SphereMenuTests.m
//  SphereMenuTests
//
//  Created by Tu You on 14-8-24.
//  Copyright (c) 2014年 TU YOU. All rights reserved.
//

#import <XCTest/XCTest.h>

@interface SphereMenuTests : XCTestCase

@end

@implementation SphereMenuTests

- (void)setUp
{
    [super setUp];
    // Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown
{
    // Put teardown code here. This method is called after the invocation of each test method in the class.
    [super tearDown];
}

- (void)testExample
{
    XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
}

@end


================================================
FILE: SphereMenuTests/en.lproj/InfoPlist.strings
================================================
/* Localized versions of Info.plist keys */

Download .txt
gitextract_w0o2r07r/

├── LICENSE
├── README.md
├── SphereMenu/
│   ├── AppDelegate.h
│   ├── AppDelegate.m
│   ├── Base.lproj/
│   │   ├── Main_iPad.storyboard
│   │   └── Main_iPhone.storyboard
│   ├── Images.xcassets/
│   │   ├── AppIcon.appiconset/
│   │   │   └── Contents.json
│   │   ├── LaunchImage.launchimage/
│   │   │   └── Contents.json
│   │   ├── icon-email.imageset/
│   │   │   └── Contents.json
│   │   ├── icon-facebook.imageset/
│   │   │   └── Contents.json
│   │   ├── icon-twitter.imageset/
│   │   │   └── Contents.json
│   │   └── start.imageset/
│   │       └── Contents.json
│   ├── Launch Screen.xib
│   ├── SphereMenu/
│   │   ├── SphereMenu.h
│   │   └── SphereMenu.m
│   ├── SphereMenu-Info.plist
│   ├── SphereMenu-Prefix.pch
│   ├── ViewController.h
│   ├── ViewController.m
│   ├── en.lproj/
│   │   └── InfoPlist.strings
│   └── main.m
├── SphereMenu.xcodeproj/
│   ├── project.pbxproj
│   ├── project.xcworkspace/
│   │   ├── contents.xcworkspacedata
│   │   ├── xcshareddata/
│   │   │   └── SphereMenu.xccheckout
│   │   └── xcuserdata/
│   │       └── Chandler.xcuserdatad/
│   │           └── UserInterfaceState.xcuserstate
│   └── xcuserdata/
│       └── Chandler.xcuserdatad/
│           ├── xcdebugger/
│           │   └── Breakpoints_v2.xcbkptlist
│           └── xcschemes/
│               ├── SphereMenu.xcscheme
│               └── xcschememanagement.plist
└── SphereMenuTests/
    ├── SphereMenuTests-Info.plist
    ├── SphereMenuTests.m
    └── en.lproj/
        └── InfoPlist.strings
Condensed preview — 31 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (65K chars).
[
  {
    "path": "LICENSE",
    "chars": 1071,
    "preview": "The MIT License (MIT)\n\nCopyright (c) 2014 tuyou\n\nPermission is hereby granted, free of charge, to any person obtaining a"
  },
  {
    "path": "README.md",
    "chars": 946,
    "preview": "# SphereMenu\n\nSphereMenu is a fun menu powered by `UIDynamicAnimator`. Inspired by [Sphere](https://itunes.apple.com/hk/"
  },
  {
    "path": "SphereMenu/AppDelegate.h",
    "chars": 271,
    "preview": "//\n//  AppDelegate.h\n//  SphereMenu\n//\n//  Created by Tu You on 14-8-24.\n//  Copyright (c) 2014年 TU YOU. All rights rese"
  },
  {
    "path": "SphereMenu/AppDelegate.m",
    "chars": 2001,
    "preview": "//\n//  AppDelegate.m\n//  SphereMenu\n//\n//  Created by Tu You on 14-8-24.\n//  Copyright (c) 2014年 TU YOU. All rights rese"
  },
  {
    "path": "SphereMenu/Base.lproj/Main_iPad.storyboard",
    "chars": 1811,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard"
  },
  {
    "path": "SphereMenu/Base.lproj/Main_iPhone.storyboard",
    "chars": 1819,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard"
  },
  {
    "path": "SphereMenu/Images.xcassets/AppIcon.appiconset/Contents.json",
    "chars": 825,
    "preview": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\""
  },
  {
    "path": "SphereMenu/Images.xcassets/LaunchImage.launchimage/Contents.json",
    "chars": 1100,
    "preview": "{\n  \"images\" : [\n    {\n      \"orientation\" : \"portrait\",\n      \"idiom\" : \"iphone\",\n      \"extent\" : \"full-screen\",\n     "
  },
  {
    "path": "SphereMenu/Images.xcassets/icon-email.imageset/Contents.json",
    "chars": 247,
    "preview": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n     "
  },
  {
    "path": "SphereMenu/Images.xcassets/icon-facebook.imageset/Contents.json",
    "chars": 250,
    "preview": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n     "
  },
  {
    "path": "SphereMenu/Images.xcassets/icon-twitter.imageset/Contents.json",
    "chars": 249,
    "preview": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n     "
  },
  {
    "path": "SphereMenu/Images.xcassets/start.imageset/Contents.json",
    "chars": 242,
    "preview": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n     "
  },
  {
    "path": "SphereMenu/Launch Screen.xib",
    "chars": 3886,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" versi"
  },
  {
    "path": "SphereMenu/SphereMenu/SphereMenu.h",
    "chars": 658,
    "preview": "//\n//  SphereMenu.h\n//  SphereMenu\n//\n//  Created by Tu You on 14-8-24.\n//  Copyright (c) 2014年 TU YOU. All rights reser"
  },
  {
    "path": "SphereMenu/SphereMenu/SphereMenu.m",
    "chars": 7841,
    "preview": "//\n//  SphereMenu.m\n//  SphereMenu\n//\n//  Created by Tu You on 14-8-24.\n//  Copyright (c) 2014年 TU YOU. All rights reser"
  },
  {
    "path": "SphereMenu/SphereMenu-Info.plist",
    "chars": 1652,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "SphereMenu/SphereMenu-Prefix.pch",
    "chars": 344,
    "preview": "//\n//  Prefix header\n//\n//  The contents of this file are implicitly included at the beginning of every source file.\n//\n"
  },
  {
    "path": "SphereMenu/ViewController.h",
    "chars": 209,
    "preview": "//\n//  ViewController.h\n//  SphereMenu\n//\n//  Created by Tu You on 14-8-24.\n//  Copyright (c) 2014年 TU YOU. All rights r"
  },
  {
    "path": "SphereMenu/ViewController.m",
    "chars": 1376,
    "preview": "//\n//  ViewController.m\n//  SphereMenu\n//\n//  Created by Tu You on 14-8-24.\n//  Copyright (c) 2014年 TU YOU. All rights r"
  },
  {
    "path": "SphereMenu/en.lproj/InfoPlist.strings",
    "chars": 45,
    "preview": "/* Localized versions of Info.plist keys */\n\n"
  },
  {
    "path": "SphereMenu/main.m",
    "chars": 331,
    "preview": "//\n//  main.m\n//  SphereMenu\n//\n//  Created by Tu You on 14-8-24.\n//  Copyright (c) 2014年 TU YOU. All rights reserved.\n/"
  },
  {
    "path": "SphereMenu.xcodeproj/project.pbxproj",
    "chars": 21865,
    "preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
  },
  {
    "path": "SphereMenu.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "chars": 155,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:SphereMenu.xcod"
  },
  {
    "path": "SphereMenu.xcodeproj/project.xcworkspace/xcshareddata/SphereMenu.xccheckout",
    "chars": 1509,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "SphereMenu.xcodeproj/xcuserdata/Chandler.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist",
    "chars": 2158,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Bucket\n   type = \"1\"\n   version = \"2.0\">\n   <Breakpoints>\n      <BreakpointProxy"
  },
  {
    "path": "SphereMenu.xcodeproj/xcuserdata/Chandler.xcuserdatad/xcschemes/SphereMenu.xcscheme",
    "chars": 3610,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"0510\"\n   version = \"1.3\">\n   <BuildAction\n      "
  },
  {
    "path": "SphereMenu.xcodeproj/xcuserdata/Chandler.xcuserdatad/xcschemes/xcschememanagement.plist",
    "chars": 572,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "SphereMenuTests/SphereMenuTests-Info.plist",
    "chars": 689,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
  },
  {
    "path": "SphereMenuTests/SphereMenuTests.m",
    "chars": 639,
    "preview": "//\n//  SphereMenuTests.m\n//  SphereMenuTests\n//\n//  Created by Tu You on 14-8-24.\n//  Copyright (c) 2014年 TU YOU. All ri"
  },
  {
    "path": "SphereMenuTests/en.lproj/InfoPlist.strings",
    "chars": 45,
    "preview": "/* Localized versions of Info.plist keys */\n\n"
  }
]

// ... and 1 more files (download for full content)

About this extraction

This page contains the full source code of the itouch2/SphereMenu GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 31 files (57.0 KB), approximately 17.7k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!