Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ykyouhei committed Jun 5, 2016
1 parent 464a1b5 commit 2e43ba4
Show file tree
Hide file tree
Showing 15 changed files with 259 additions and 13 deletions.
9 changes: 0 additions & 9 deletions Example/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.

let v = KYWheelTabController()

let vc = UIViewController()
vc.tabBarItem = UITabBarItem(title: "", image: nil, tag: 1)

v.viewControllers = [vc]

window?.rootViewController = v

return true
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Screen Shot 2016-01-06 at 22.18.09.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "写真アップロード_Up.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "写真アップロード_Up_gps.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 25 additions & 1 deletion Example/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15B42" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="R4q-fc-jd3">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15B42" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="R4q-fc-jd3">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
Expand All @@ -23,11 +23,18 @@
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFill" image="Screen Shot 2016-01-06 at 22.18.09" translatesAutoresizingMaskIntoConstraints="NO" id="5fg-S4-HbI">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="5fg-S4-HbI" firstAttribute="leading" secondItem="Cdu-Zr-Vn0" secondAttribute="leading" id="WVH-gz-tAp"/>
<constraint firstItem="JHk-oB-mUP" firstAttribute="centerX" secondItem="Cdu-Zr-Vn0" secondAttribute="centerX" id="atU-7g-HLz"/>
<constraint firstAttribute="trailing" secondItem="5fg-S4-HbI" secondAttribute="trailing" id="mcj-Xs-ewo"/>
<constraint firstItem="JHk-oB-mUP" firstAttribute="centerY" secondItem="Cdu-Zr-Vn0" secondAttribute="centerY" id="nVl-HH-XkJ"/>
<constraint firstAttribute="bottom" secondItem="5fg-S4-HbI" secondAttribute="bottom" id="q22-ts-2Lx"/>
<constraint firstItem="5fg-S4-HbI" firstAttribute="top" secondItem="Cdu-Zr-Vn0" secondAttribute="top" id="tPL-6A-btN"/>
</constraints>
</view>
<tabBarItem key="tabBarItem" title="User" image="icon_user" selectedImage="icon_user_on" id="jzg-Dz-E5J"/>
Expand All @@ -54,10 +61,17 @@
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFill" image="写真アップロード_Up_gps" translatesAutoresizingMaskIntoConstraints="NO" id="iC9-0Q-pYV">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="9Ua-n0-pP2" firstAttribute="centerY" secondItem="Qyu-PF-I7N" secondAttribute="centerY" id="8ue-Vz-f2m"/>
<constraint firstAttribute="bottom" secondItem="iC9-0Q-pYV" secondAttribute="bottom" id="ZYJ-rS-Eys"/>
<constraint firstAttribute="trailing" secondItem="iC9-0Q-pYV" secondAttribute="trailing" id="dt7-nK-qtp"/>
<constraint firstItem="iC9-0Q-pYV" firstAttribute="top" secondItem="Qyu-PF-I7N" secondAttribute="top" id="hmS-TQ-rUd"/>
<constraint firstItem="iC9-0Q-pYV" firstAttribute="leading" secondItem="Qyu-PF-I7N" secondAttribute="leading" id="ny2-Ss-8WX"/>
<constraint firstItem="9Ua-n0-pP2" firstAttribute="centerX" secondItem="Qyu-PF-I7N" secondAttribute="centerX" id="wpk-AQ-y86"/>
</constraints>
</view>
Expand Down Expand Up @@ -116,11 +130,18 @@
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFill" image="写真アップロード_Up" translatesAutoresizingMaskIntoConstraints="NO" id="JCO-3A-oFq">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="JCO-3A-oFq" secondAttribute="trailing" id="4vW-gE-GKs"/>
<constraint firstItem="GlW-o5-AiT" firstAttribute="centerY" secondItem="UnA-g2-Tp4" secondAttribute="centerY" id="Dlq-d7-5tX"/>
<constraint firstItem="JCO-3A-oFq" firstAttribute="leading" secondItem="UnA-g2-Tp4" secondAttribute="leading" id="DmE-bj-g59"/>
<constraint firstItem="GlW-o5-AiT" firstAttribute="centerX" secondItem="UnA-g2-Tp4" secondAttribute="centerX" id="Xf9-ng-zr3"/>
<constraint firstItem="JCO-3A-oFq" firstAttribute="top" secondItem="UnA-g2-Tp4" secondAttribute="top" id="d8h-6h-Xqq"/>
<constraint firstAttribute="bottom" secondItem="JCO-3A-oFq" secondAttribute="bottom" id="pDY-uS-lrT"/>
</constraints>
</view>
<tabBarItem key="tabBarItem" title="Home" image="icon_home" selectedImage="icon_home_on" id="vhJ-tX-3ic"/>
Expand Down Expand Up @@ -156,6 +177,7 @@
</scene>
</scenes>
<resources>
<image name="Screen Shot 2016-01-06 at 22.18.09" width="373" height="664"/>
<image name="icon_follow" width="24" height="22"/>
<image name="icon_follow_on" width="24" height="22"/>
<image name="icon_home" width="24" height="21"/>
Expand All @@ -164,5 +186,7 @@
<image name="icon_search_on" width="21" height="20"/>
<image name="icon_user" width="20" height="22"/>
<image name="icon_user_on" width="20" height="22"/>
<image name="写真アップロード_Up" width="375" height="667"/>
<image name="写真アップロード_Up_gps" width="375" height="667"/>
</resources>
</document>
6 changes: 5 additions & 1 deletion Example/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@
<array>
<string>armv7</string>
</array>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
65 changes: 65 additions & 0 deletions Example/Storyboard.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15B42" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
</dependencies>
<scenes>
<!--Item 2-->
<scene sceneID="39c-GB-COE">
<objects>
<viewController id="Rsr-Uq-8bf" customClass="KYWheelTabController" customModule="KYWheelTabController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="dmi-rj-ZTn"/>
<viewControllerLayoutGuide type="bottom" id="yNp-aN-AHJ"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="mld-4C-KH6">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
<tabBarItem key="tabBarItem" title="Item 2" id="zbC-Xg-v2D"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="kSm-OQ-j9t" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="954" y="409"/>
</scene>
<!--Item 1-->
<scene sceneID="CbX-dl-fwv">
<objects>
<viewController id="lcy-BN-LGc" customClass="KYWheelTabController" customModule="KYWheelTabController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="hxq-Mg-4EB"/>
<viewControllerLayoutGuide type="bottom" id="hSr-cx-KMi"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="z3p-r1-hwv">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
<tabBarItem key="tabBarItem" title="Item 1" id="e7c-NZ-CAk"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Yvj-E5-TRY" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="954" y="-251"/>
</scene>
<!--Wheel Tab Controller-->
<scene sceneID="xBx-ai-L2A">
<objects>
<tabBarController id="POl-nr-gpe" customClass="KYWheelTabController" customModule="KYWheelTabController" sceneMemberID="viewController">
<tabBar key="tabBar" contentMode="scaleToFill" id="MDo-Cl-87r">
<rect key="frame" x="0.0" y="0.0" width="320" height="49"/>
<autoresizingMask key="autoresizingMask"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</tabBar>
<connections>
<segue destination="lcy-BN-LGc" kind="relationship" relationship="viewControllers" id="f8r-TZ-CN4"/>
<segue destination="Rsr-Uq-8bf" kind="relationship" relationship="viewControllers" id="afe-pg-GeQ"/>
</connections>
</tabBarController>
<placeholder placeholderIdentifier="IBFirstResponder" id="KkX-iJ-BzS" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="134" y="77"/>
</scene>
</scenes>
</document>
Binary file added Images/sample.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/sample2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions KYWheelTabController.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
41149BBF1C78CA6F00920C0D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 41149BBD1C78CA6F00920C0D /* LaunchScreen.storyboard */; };
41149BC41C78CAEE00920C0D /* KYWheelTabController.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 41149B931C78C8E000920C0D /* KYWheelTabController.framework */; };
41149BC51C78CAEE00920C0D /* KYWheelTabController.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 41149B931C78C8E000920C0D /* KYWheelTabController.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
41B608751D042A910040D4F5 /* Storyboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 41B608741D042A910040D4F5 /* Storyboard.storyboard */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -62,6 +63,7 @@
41149BBB1C78CA6F00920C0D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
41149BBE1C78CA6F00920C0D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
41149BC01C78CA6F00920C0D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
41B608741D042A910040D4F5 /* Storyboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Storyboard.storyboard; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -156,6 +158,7 @@
41149BBB1C78CA6F00920C0D /* Assets.xcassets */,
41149BBD1C78CA6F00920C0D /* LaunchScreen.storyboard */,
41149BC01C78CA6F00920C0D /* Info.plist */,
41B608741D042A910040D4F5 /* Storyboard.storyboard */,
);
path = Example;
sourceTree = "<group>";
Expand Down Expand Up @@ -264,6 +267,7 @@
buildActionMask = 2147483647;
files = (
41149BBF1C78CA6F00920C0D /* LaunchScreen.storyboard in Resources */,
41B608751D042A910040D4F5 /* Storyboard.storyboard in Resources */,
41149BBC1C78CA6F00920C0D /* Assets.xcassets in Resources */,
41149BBA1C78CA6F00920C0D /* Main.storyboard in Resources */,
);
Expand Down Expand Up @@ -489,6 +493,7 @@
41149B9D1C78C8E000920C0D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
41149BC11C78CA6F00920C0D /* Build configuration list for PBXNativeTarget "Example" */ = {
isa = XCConfigurationList;
Expand All @@ -497,6 +502,7 @@
41149BC31C78CA6F00920C0D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class KYWheelTabController: UITabBarController {
}
}

private(set) lazy var wheelMenuView: WheelMenuView = {
public internal(set) lazy var wheelMenuView: WheelMenuView = {
return WheelMenuView(
frame: CGRect(origin: CGPointZero, size: CGSize(width: 201, height: 201)),
tabBarItems: self.tabBarItems)
Expand Down
Loading

0 comments on commit 2e43ba4

Please sign in to comment.