Skip to content

Commit

Permalink
Updated to Swift 1.2. Translated to English. Added new license GPL v3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Butron committed Apr 12, 2015
1 parent 845b38c commit 1c9ac89
Show file tree
Hide file tree
Showing 50 changed files with 516 additions and 93 deletions.
Binary file not shown.
10 changes: 6 additions & 4 deletions GestureDoubleTap/GestureDoubleTab.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
0787D9821A2CD23000F22957 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0787D9811A2CD23000F22957 /* Images.xcassets */; };
0787D9851A2CD23000F22957 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0787D9831A2CD23000F22957 /* LaunchScreen.xib */; };
0787D9911A2CD23000F22957 /* GestureDoubleTabTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0787D9901A2CD23000F22957 /* GestureDoubleTabTests.swift */; };
0787D99B1A2CD27600F22957 /* imagen1.png in Resources */ = {isa = PBXBuildFile; fileRef = 0787D99A1A2CD27600F22957 /* imagen1.png */; };
0787D99B1A2CD27600F22957 /* image1.png in Resources */ = {isa = PBXBuildFile; fileRef = 0787D99A1A2CD27600F22957 /* image1.png */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -37,7 +37,7 @@
0787D98A1A2CD23000F22957 /* GestureDoubleTabTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GestureDoubleTabTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
0787D98F1A2CD23000F22957 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
0787D9901A2CD23000F22957 /* GestureDoubleTabTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GestureDoubleTabTests.swift; sourceTree = "<group>"; };
0787D99A1A2CD27600F22957 /* imagen1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = imagen1.png; sourceTree = "<group>"; };
0787D99A1A2CD27600F22957 /* image1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image1.png; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -79,7 +79,7 @@
0787D9771A2CD23000F22957 /* GestureDoubleTab */ = {
isa = PBXGroup;
children = (
0787D99A1A2CD27600F22957 /* imagen1.png */,
0787D99A1A2CD27600F22957 /* image1.png */,
0787D97A1A2CD23000F22957 /* AppDelegate.swift */,
0787D97C1A2CD23000F22957 /* ViewController.swift */,
0787D97E1A2CD23000F22957 /* Main.storyboard */,
Expand Down Expand Up @@ -195,7 +195,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
0787D99B1A2CD27600F22957 /* imagen1.png in Resources */,
0787D99B1A2CD27600F22957 /* image1.png in Resources */,
0787D9801A2CD23000F22957 /* Main.storyboard in Resources */,
0787D9851A2CD23000F22957 /* LaunchScreen.xib in Resources */,
0787D9821A2CD23000F22957 /* Images.xcassets in Resources */,
Expand Down Expand Up @@ -409,6 +409,7 @@
0787D9961A2CD23000F22957 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
0787D9971A2CD23000F22957 /* Build configuration list for PBXNativeTarget "GestureDoubleTabTests" */ = {
isa = XCConfigurationList;
Expand All @@ -417,6 +418,7 @@
0787D9991A2CD23000F22957 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
Binary file not shown.
10 changes: 9 additions & 1 deletion GestureDoubleTap/GestureDoubleTab/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
// GestureDoubleTab
//
// Created by Carlos Butron on 01/12/14.
// Copyright (c) 2014 Carlos Butron. All rights reserved.
// Copyright (c) 2015 Carlos Butron. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
// version.
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program. If not, see
// http:/www.gnu.org/licenses/.
//

import UIKit
Expand Down
8 changes: 4 additions & 4 deletions GestureDoubleTap/GestureDoubleTab/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="6250" systemVersion="14B25" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="mN7-Gl-HB4">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6250" systemVersion="14D131" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="mN7-Gl-HB4">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
Expand All @@ -17,7 +17,7 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView multipleTouchEnabled="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="imagen1.png" translatesAutoresizingMaskIntoConstraints="NO" id="j8Y-dG-RKE">
<imageView multipleTouchEnabled="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="image1.png" translatesAutoresizingMaskIntoConstraints="NO" id="j8Y-dG-RKE">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<gestureRecognizers/>
<constraints>
Expand All @@ -35,7 +35,7 @@
</constraints>
</view>
<connections>
<outlet property="imagen" destination="j8Y-dG-RKE" id="hAU-hn-tfy"/>
<outlet property="image" destination="j8Y-dG-RKE" id="Nxo-cV-13k"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="0cd-zp-iWy" sceneMemberID="firstResponder"/>
Expand All @@ -44,7 +44,7 @@
</scene>
</scenes>
<resources>
<image name="imagen1.png" width="800" height="800"/>
<image name="image1.png" width="800" height="800"/>
</resources>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
Expand Down
14 changes: 11 additions & 3 deletions GestureDoubleTap/GestureDoubleTab/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,22 @@
// GestureDoubleTab
//
// Created by Carlos Butron on 01/12/14.
// Copyright (c) 2014 Carlos Butron. All rights reserved.
// Copyright (c) 2015 Carlos Butron. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
// version.
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program. If not, see
// http:/www.gnu.org/licenses/.
//

import UIKit

class ViewController: UIViewController {

@IBOutlet weak var imagen: UIImageView!
@IBOutlet weak var image: UIImageView!


override func didReceiveMemoryWarning() {
Expand All @@ -29,7 +37,7 @@ class ViewController: UIViewController {
var tapGesture = UITapGestureRecognizer(target: self, action:
"handleTap:")
tapGesture.numberOfTapsRequired = 2;
imagen.addGestureRecognizer(tapGesture)
image.addGestureRecognizer(tapGesture)

// Do any additional setup after loading the view, typically from a nib.
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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>FEB71A57-D00E-4E8E-A795-335F64B96757</string>
<key>IDESourceControlProjectName</key>
<string>GestureLongPress</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</key>
<string>https://github.com/CarlosButron/Swift.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>GestureLongPress/GestureLongPress.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/CarlosButron/Swift.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</string>
<key>IDESourceControlWCCName</key>
<string>Swift</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.
10 changes: 9 additions & 1 deletion GestureLongPress/GestureLongPress/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
// GestureLongPress
//
// Created by Carlos Butron on 01/12/14.
// Copyright (c) 2014 Carlos Butron. All rights reserved.
// Copyright (c) 2015 Carlos Butron. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
// version.
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program. If not, see
// http:/www.gnu.org/licenses/.
//

import UIKit
Expand Down
4 changes: 2 additions & 2 deletions GestureLongPress/GestureLongPress/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="6250" systemVersion="14B25" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="xQK-W9-lFo">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6250" systemVersion="14D131" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="xQK-W9-lFo">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
Expand All @@ -9,7 +9,7 @@
<!--View Controller-->
<scene sceneID="QGH-p5-Phx">
<objects>
<viewController id="xQK-W9-lFo" customClass="ViewController" customModule="T8E3Ampliacion2CarlosButron" customModuleProvider="target" sceneMemberID="viewController">
<viewController id="xQK-W9-lFo" customClass="ViewController" customModule="GestureLongPress" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="MQl-sI-OZm"/>
<viewControllerLayoutGuide type="bottom" id="rhR-t5-636"/>
Expand Down
14 changes: 11 additions & 3 deletions GestureLongPress/GestureLongPress/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
// GestureLongPress
//
// Created by Carlos Butron on 01/12/14.
// Copyright (c) 2014 Carlos Butron. All rights reserved.
// Copyright (c) 2015 Carlos Butron. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
// version.
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program. If not, see
// http:/www.gnu.org/licenses/.
//

import UIKit
Expand Down Expand Up @@ -37,8 +45,8 @@ class ViewController: UIViewController {

var myAlertView = UIAlertView()

myAlertView.title = "Alerta"
myAlertView.message = "Gesto Long Press"
myAlertView.title = "Alert"
myAlertView.message = "Long Press gesture"
myAlertView.addButtonWithTitle("ok")

myAlertView.show()
Expand Down
10 changes: 6 additions & 4 deletions GesturePinch/PinchGesture.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
0787D9B21A2CD3D100F22957 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0787D9B11A2CD3D100F22957 /* Images.xcassets */; };
0787D9B51A2CD3D100F22957 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0787D9B31A2CD3D100F22957 /* LaunchScreen.xib */; };
0787D9C11A2CD3D100F22957 /* PinchGestureTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0787D9C01A2CD3D100F22957 /* PinchGestureTests.swift */; };
0787D9CB1A2CD3F800F22957 /* imagen1.png in Resources */ = {isa = PBXBuildFile; fileRef = 0787D9CA1A2CD3F700F22957 /* imagen1.png */; };
0787D9CB1A2CD3F800F22957 /* image1.png in Resources */ = {isa = PBXBuildFile; fileRef = 0787D9CA1A2CD3F700F22957 /* image1.png */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -37,7 +37,7 @@
0787D9BA1A2CD3D100F22957 /* PinchGestureTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PinchGestureTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
0787D9BF1A2CD3D100F22957 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
0787D9C01A2CD3D100F22957 /* PinchGestureTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PinchGestureTests.swift; sourceTree = "<group>"; };
0787D9CA1A2CD3F700F22957 /* imagen1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = imagen1.png; sourceTree = "<group>"; };
0787D9CA1A2CD3F700F22957 /* image1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image1.png; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -79,7 +79,7 @@
0787D9A71A2CD3D100F22957 /* PinchGesture */ = {
isa = PBXGroup;
children = (
0787D9CA1A2CD3F700F22957 /* imagen1.png */,
0787D9CA1A2CD3F700F22957 /* image1.png */,
0787D9AA1A2CD3D100F22957 /* AppDelegate.swift */,
0787D9AC1A2CD3D100F22957 /* ViewController.swift */,
0787D9AE1A2CD3D100F22957 /* Main.storyboard */,
Expand Down Expand Up @@ -195,7 +195,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
0787D9CB1A2CD3F800F22957 /* imagen1.png in Resources */,
0787D9CB1A2CD3F800F22957 /* image1.png in Resources */,
0787D9B01A2CD3D100F22957 /* Main.storyboard in Resources */,
0787D9B51A2CD3D100F22957 /* LaunchScreen.xib in Resources */,
0787D9B21A2CD3D100F22957 /* Images.xcassets in Resources */,
Expand Down Expand Up @@ -409,6 +409,7 @@
0787D9C61A2CD3D100F22957 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
0787D9C71A2CD3D100F22957 /* Build configuration list for PBXNativeTarget "PinchGestureTests" */ = {
isa = XCConfigurationList;
Expand All @@ -417,6 +418,7 @@
0787D9C91A2CD3D100F22957 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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>819DE178-EB1A-423A-810D-63D2C4C3AC75</string>
<key>IDESourceControlProjectName</key>
<string>PinchGesture</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</key>
<string>https://github.com/CarlosButron/Swift.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>GesturePinch/PinchGesture.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/CarlosButron/Swift.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>9FCBC930A8DBEE5E1E1094396CDFC4C7EE814530</string>
<key>IDESourceControlWCCName</key>
<string>Swift</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.
10 changes: 9 additions & 1 deletion GesturePinch/PinchGesture/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
// PinchGesture
//
// Created by Carlos Butron on 01/12/14.
// Copyright (c) 2014 Carlos Butron. All rights reserved.
// Copyright (c) 2015 Carlos Butron. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
// version.
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program. If not, see
// http:/www.gnu.org/licenses/.
//

import UIKit
Expand Down
Loading

0 comments on commit 1c9ac89

Please sign in to comment.