Skip to content

Commit

Permalink
Merge branch 'release/0.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
bcylin committed May 8, 2014
2 parents 73d0fdf + eb5e36e commit 76f71e9
Show file tree
Hide file tree
Showing 18 changed files with 1,016 additions and 30 deletions.
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# https://github.com/github/gitignore/blob/master/Global/Xcode.gitignore
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
profile
*.moved-aside
DerivedData
*.hmap
*.ipa

# OS
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db

# CocoaPods
Pods
*.xcworkspace

9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: objective-c
before_install:
- "brew update; brew upgrade xctool"
- "gem install cocoapods --no-rdoc --no-ri"
before_script:
- "export LANG=en_US.UTF-8"
- "cd Demo"
script:
- "xctool -project NEUPagingSegmentedControlDemo.xcodeproj -scheme NEUPagingSegmentedControlDemo -sdk iphonesimulator build"
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Version 0.1.0

* First release
32 changes: 32 additions & 0 deletions Demo/NEUPagingSegmentedControlDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
B53D85331917F794009A7961 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B53D851B1917F794009A7961 /* UIKit.framework */; };
B53D853B1917F794009A7961 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = B53D85391917F794009A7961 /* InfoPlist.strings */; };
B53D853D1917F794009A7961 /* NEUPagingSegmentedControlDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B53D853C1917F794009A7961 /* NEUPagingSegmentedControlDemoTests.m */; };
B5A8C6D91917FBA500A01E88 /* NEUViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = B5A8C6D81917FBA500A01E88 /* NEUViewController.m */; };
B5A8C6DC1917FBAF00A01E88 /* NEUPagingSegmentedControl.m in Sources */ = {isa = PBXBuildFile; fileRef = B5A8C6DB1917FBAF00A01E88 /* NEUPagingSegmentedControl.m */; };
B5A8C6E01917FCF300A01E88 /* NEUTriangleView.m in Sources */ = {isa = PBXBuildFile; fileRef = B5A8C6DF1917FCF300A01E88 /* NEUTriangleView.m */; };
B5A8C6E61917FF7900A01E88 /* NEUBorderedView.m in Sources */ = {isa = PBXBuildFile; fileRef = B5A8C6E51917FF7900A01E88 /* NEUBorderedView.m */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -48,6 +52,14 @@
B53D85381917F794009A7961 /* NEUPagingSegmentedControlDemoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "NEUPagingSegmentedControlDemoTests-Info.plist"; sourceTree = "<group>"; };
B53D853A1917F794009A7961 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
B53D853C1917F794009A7961 /* NEUPagingSegmentedControlDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NEUPagingSegmentedControlDemoTests.m; sourceTree = "<group>"; };
B5A8C6D71917FBA500A01E88 /* NEUViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NEUViewController.h; sourceTree = "<group>"; };
B5A8C6D81917FBA500A01E88 /* NEUViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NEUViewController.m; sourceTree = "<group>"; };
B5A8C6DA1917FBAF00A01E88 /* NEUPagingSegmentedControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NEUPagingSegmentedControl.h; path = ../../NEUPagingSegmentedControl/NEUPagingSegmentedControl.h; sourceTree = "<group>"; };
B5A8C6DB1917FBAF00A01E88 /* NEUPagingSegmentedControl.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NEUPagingSegmentedControl.m; path = ../../NEUPagingSegmentedControl/NEUPagingSegmentedControl.m; sourceTree = "<group>"; };
B5A8C6DE1917FCF300A01E88 /* NEUTriangleView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NEUTriangleView.h; path = ../../NEUPagingSegmentedControl/NEUTriangleView.h; sourceTree = "<group>"; };
B5A8C6DF1917FCF300A01E88 /* NEUTriangleView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NEUTriangleView.m; path = ../../NEUPagingSegmentedControl/NEUTriangleView.m; sourceTree = "<group>"; };
B5A8C6E41917FF7900A01E88 /* NEUBorderedView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NEUBorderedView.h; path = ../../NEUPagingSegmentedControl/NEUBorderedView.h; sourceTree = "<group>"; };
B5A8C6E51917FF7900A01E88 /* NEUBorderedView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NEUBorderedView.m; path = ../../NEUPagingSegmentedControl/NEUBorderedView.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -107,10 +119,13 @@
B53D851D1917F794009A7961 /* NEUPagingSegmentedControlDemo */ = {
isa = PBXGroup;
children = (
B5A8C6DD1917FBB400A01E88 /* NEUPagingSegmentedControl */,
B53D851E1917F794009A7961 /* Supporting Files */,
B53D85291917F794009A7961 /* Images.xcassets */,
B53D85261917F794009A7961 /* NEUAppDelegate.h */,
B53D85271917F794009A7961 /* NEUAppDelegate.m */,
B5A8C6D71917FBA500A01E88 /* NEUViewController.h */,
B5A8C6D81917FBA500A01E88 /* NEUViewController.m */,
);
path = NEUPagingSegmentedControlDemo;
sourceTree = "<group>";
Expand Down Expand Up @@ -144,6 +159,19 @@
name = "Supporting Files";
sourceTree = "<group>";
};
B5A8C6DD1917FBB400A01E88 /* NEUPagingSegmentedControl */ = {
isa = PBXGroup;
children = (
B5A8C6E41917FF7900A01E88 /* NEUBorderedView.h */,
B5A8C6E51917FF7900A01E88 /* NEUBorderedView.m */,
B5A8C6DA1917FBAF00A01E88 /* NEUPagingSegmentedControl.h */,
B5A8C6DB1917FBAF00A01E88 /* NEUPagingSegmentedControl.m */,
B5A8C6DE1917FCF300A01E88 /* NEUTriangleView.h */,
B5A8C6DF1917FCF300A01E88 /* NEUTriangleView.m */,
);
name = NEUPagingSegmentedControl;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -242,6 +270,10 @@
files = (
B53D85241917F794009A7961 /* main.m in Sources */,
B53D85281917F794009A7961 /* NEUAppDelegate.m in Sources */,
B5A8C6E61917FF7900A01E88 /* NEUBorderedView.m in Sources */,
B5A8C6DC1917FBAF00A01E88 /* NEUPagingSegmentedControl.m in Sources */,
B5A8C6E01917FCF300A01E88 /* NEUTriangleView.m in Sources */,
B5A8C6D91917FBA500A01E88 /* NEUViewController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?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 = "B53D85131917F794009A7961"
BuildableName = "NEUPagingSegmentedControlDemo.app"
BlueprintName = "NEUPagingSegmentedControlDemo"
ReferencedContainer = "container:NEUPagingSegmentedControlDemo.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 = "B53D852E1917F794009A7961"
BuildableName = "NEUPagingSegmentedControlDemoTests.xctest"
BlueprintName = "NEUPagingSegmentedControlDemoTests"
ReferencedContainer = "container:NEUPagingSegmentedControlDemo.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B53D85131917F794009A7961"
BuildableName = "NEUPagingSegmentedControlDemo.app"
BlueprintName = "NEUPagingSegmentedControlDemo"
ReferencedContainer = "container:NEUPagingSegmentedControlDemo.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 = "B53D85131917F794009A7961"
BuildableName = "NEUPagingSegmentedControlDemo.app"
BlueprintName = "NEUPagingSegmentedControlDemo"
ReferencedContainer = "container:NEUPagingSegmentedControlDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B53D85131917F794009A7961"
BuildableName = "NEUPagingSegmentedControlDemo.app"
BlueprintName = "NEUPagingSegmentedControlDemo"
ReferencedContainer = "container:NEUPagingSegmentedControlDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
34 changes: 6 additions & 28 deletions Demo/NEUPagingSegmentedControlDemo/NEUAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,21 @@
//

#import "NEUAppDelegate.h"
#import "NEUViewController.h"

@implementation NEUAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
UIViewController *controller = [[NEUViewController alloc] init];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:controller];
self.window.rootViewController = navigationController;

- (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:.
[self.window makeKeyAndVisible];
return YES;
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>0.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<string>0.1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
Expand Down
13 changes: 13 additions & 0 deletions Demo/NEUPagingSegmentedControlDemo/NEUViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// NEUViewController.h
// NEUPagingSegmentedControlDemo
//
// Created by Ben on 06/05/2014.
// Copyright (c) 2014 bcylin. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface NEUViewController : UIViewController

@end
Loading

0 comments on commit 76f71e9

Please sign in to comment.