-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
189 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.9 KB
(110%)
...codeproj/project.xcworkspace/xcuserdata/dren_a.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// | ||
// MainTabBarController.swift | ||
// SwiftSideslipLikeQQ | ||
// | ||
// Created by JohnLui on 15/5/2. | ||
// Copyright (c) 2015年 com.lvwenhan. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
class MainTabBarController: UITabBarController { | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
|
||
// Do any additional setup after loading the view. | ||
} | ||
|
||
override func didReceiveMemoryWarning() { | ||
super.didReceiveMemoryWarning() | ||
// Dispose of any resources that can be recreated. | ||
} | ||
|
||
override func tabBar(tabBar: UITabBar, didSelectItem item: UITabBarItem!) { | ||
switch item.tag { | ||
case 0: | ||
Common.contactsVC.view.removeFromSuperview() | ||
case 1: | ||
Common.rootViewController.mainTabBarController.view.addSubview(Common.contactsVC.view) | ||
Common.rootViewController.mainTabBarController.view.bringSubviewToFront(Common.rootViewController.mainTabBarController.tabBar) | ||
case 2: | ||
println("Just like case 1 ↑") | ||
default: | ||
break | ||
} | ||
} | ||
|
||
/* | ||
// MARK: - Navigation | ||
|
||
// In a storyboard-based application, you will often want to do a little preparation before navigation | ||
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { | ||
// Get the new view controller using segue.destinationViewController. | ||
// Pass the selected object to the new view controller. | ||
} | ||
*/ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7702" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> | ||
<dependencies> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7701"/> | ||
</dependencies> | ||
<objects> | ||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MainTabBarController" customModule="SwiftSideslipLikeQQ" customModuleProvider="target"/> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | ||
<tabBarController id="MVf-aK-yqi" customClass="MainTabBarController" customModule="SwiftSideslipLikeQQ" customModuleProvider="target"> | ||
<nil key="simulatedBottomBarMetrics"/> | ||
<tabBar key="tabBar" contentMode="scaleToFill" id="3se-QO-4d3"> | ||
<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> | ||
<viewControllers> | ||
<viewController id="ArV-4A-9pJ"> | ||
<layoutGuides> | ||
<viewControllerLayoutGuide type="top" id="2Db-AX-v7B"/> | ||
<viewControllerLayoutGuide type="bottom" id="ols-ay-RfO"/> | ||
</layoutGuides> | ||
<view key="view" contentMode="scaleToFill" id="OZl-hv-SzX"> | ||
<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="消息" image="qq" id="lhs-1a-7cs"/> | ||
</viewController> | ||
<viewController id="dAW-AX-gaf"> | ||
<layoutGuides> | ||
<viewControllerLayoutGuide type="top" id="vfC-cQ-9ms"/> | ||
<viewControllerLayoutGuide type="bottom" id="RaY-uK-dmt"/> | ||
</layoutGuides> | ||
<view key="view" contentMode="scaleToFill" id="Wic-8C-sSl"> | ||
<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" tag="1" systemItem="contacts" id="fje-4a-U9w"/> | ||
</viewController> | ||
<viewController automaticallyAdjustsScrollViewInsets="NO" id="4UF-Yf-2Kt"> | ||
<tabBarItem key="tabBarItem" tag="2" title="动态" image="xingxing" id="FSG-M9-Tgi"/> | ||
<toolbarItems/> | ||
</viewController> | ||
</viewControllers> | ||
<point key="canvasLocation" x="236" y="269"/> | ||
</tabBarController> | ||
</objects> | ||
<resources> | ||
<image name="qq" width="30" height="30"/> | ||
<image name="xingxing" width="26" height="27"/> | ||
</resources> | ||
</document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters