Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

tab #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions database/data_moneplay
Submodule data_moneplay added at 079de7
8 changes: 8 additions & 0 deletions ios/monePoke/monePoke.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
0529B7511C094B3800CABAB5 /* loginController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0529B74F1C094B3800CABAB5 /* loginController.swift */; };
0529B7521C094B3800CABAB5 /* mainController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0529B7501C094B3800CABAB5 /* mainController.swift */; };
0529B7541C094C5D00CABAB5 /* locationView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0529B7531C094C5D00CABAB5 /* locationView.swift */; };
0529B7561C097B0E00CABAB5 /* pointController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0529B7551C097B0E00CABAB5 /* pointController.swift */; };
0529B7581C097B6800CABAB5 /* userController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0529B7571C097B6800CABAB5 /* userController.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -51,6 +53,8 @@
0529B74F1C094B3800CABAB5 /* loginController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = loginController.swift; sourceTree = "<group>"; };
0529B7501C094B3800CABAB5 /* mainController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = mainController.swift; sourceTree = "<group>"; };
0529B7531C094C5D00CABAB5 /* locationView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = locationView.swift; sourceTree = "<group>"; };
0529B7551C097B0E00CABAB5 /* pointController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = pointController.swift; sourceTree = "<group>"; };
0529B7571C097B6800CABAB5 /* userController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = userController.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -102,6 +106,8 @@
isa = PBXGroup;
children = (
0529B71F1C09386300CABAB5 /* AppDelegate.swift */,
0529B7571C097B6800CABAB5 /* userController.swift */,
0529B7551C097B0E00CABAB5 /* pointController.swift */,
0529B74F1C094B3800CABAB5 /* loginController.swift */,
0529B7501C094B3800CABAB5 /* mainController.swift */,
0529B7231C09386300CABAB5 /* Main.storyboard */,
Expand Down Expand Up @@ -262,7 +268,9 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
0529B7581C097B6800CABAB5 /* userController.swift in Sources */,
0529B7521C094B3800CABAB5 /* mainController.swift in Sources */,
0529B7561C097B0E00CABAB5 /* pointController.swift in Sources */,
0529B7541C094C5D00CABAB5 /* locationView.swift in Sources */,
0529B7201C09386300CABAB5 /* AppDelegate.swift in Sources */,
0529B7511C094B3800CABAB5 /* loginController.swift in Sources */,
Expand Down
Binary file not shown.
18 changes: 16 additions & 2 deletions ios/monePoke/monePoke/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,24 @@ import UIKit
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

private var myTabBarController: UITabBarController!

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.

window = UIWindow(frame: UIScreen.mainScreen().bounds)

let mainView:UIViewController = mainController()
let pointView:UIViewController = pointController()
let userView:UIViewController = userController()

let tabSet = NSArray(objects: mainView,pointView,userView)

myTabBarController = UITabBarController()
myTabBarController?.setViewControllers(tabSet as? [UIViewController], animated: false)

self.window!.rootViewController = myTabBarController
self.window!.makeKeyAndVisible()

return true
}

Expand Down
30 changes: 30 additions & 0 deletions ios/monePoke/monePoke/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@
</objects>
<point key="canvasLocation" x="129.59999999999999" y="321.39333333333332"/>
</scene>
<!--Point Controller-->
<scene sceneID="CRB-tD-jsH">
<objects>
<viewController id="ac4-uS-cQs" customClass="pointController" customModule="monePoke" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="wEG-Ok-D6S">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Ra1-bi-UpQ" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="565" y="-356"/>
</scene>
<!--Main Controller-->
<scene sceneID="9qB-tu-tfd">
<objects>
Expand Down Expand Up @@ -82,6 +97,21 @@
</objects>
<point key="canvasLocation" x="565" y="321"/>
</scene>
<!--User Controller-->
<scene sceneID="IE6-qx-tTQ">
<objects>
<viewController id="vIE-xh-pr4" customClass="userController" customModule="monePoke" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="jj4-EY-rHG">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="NvM-aQ-dSx" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="565" y="1051"/>
</scene>
<!--Location View-->
<scene sceneID="WQQ-Fu-amp">
<objects>
Expand Down
14 changes: 14 additions & 0 deletions ios/monePoke/monePoke/mainController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ class mainController: UIViewController,MKMapViewDelegate,CLLocationManagerDelega
@IBOutlet weak var plabel: UILabel!
var myLocation:CLLocationManager!

init(){
super.init(nibName: nil, bundle: nil)

self.tabBarItem = UITabBarItem(tabBarSystemItem: UITabBarSystemItem.Featured, tag: 1)
}

required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
}

override func viewDidLoad() {
super.viewDidLoad()
pointLabel.frame = CGRectMake(0, UIScreen.mainScreen().bounds.height/15, UIScreen.mainScreen().bounds.width * 4 / 5, mapView.frame.minY - UIScreen.mainScreen().bounds.height/15)
Expand Down
35 changes: 35 additions & 0 deletions ios/monePoke/monePoke/pointController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//
// pointController.swift
// monePoke
//
// Created by IkegamiYuki on 11/28/15.
// Copyright © 2015 IkegamiYuki. All rights reserved.
//

import Foundation
import UIKit

class pointController:UIViewController {

init(){
super.init(nibName: nil, bundle: nil)

self.tabBarItem = UITabBarItem(tabBarSystemItem: UITabBarSystemItem.Featured, tag: 3)
}

required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
}

override func viewDidLoad() {
super.viewDidLoad()
}

override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}
35 changes: 35 additions & 0 deletions ios/monePoke/monePoke/userController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//
// userController.swift
// monePoke
//
// Created by IkegamiYuki on 11/28/15.
// Copyright © 2015 IkegamiYuki. All rights reserved.
//

import Foundation
import UIKit

class userController:UIViewController {

init(){
super.init(nibName: nil, bundle: nil)

self.tabBarItem = UITabBarItem(tabBarSystemItem: UITabBarSystemItem.Featured, tag: 2)
}

required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
}

override func viewDidLoad() {
super.viewDidLoad()
}

override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}