├── .gitignore ├── LICENSE ├── README.md ├── XianYu.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata └── XianYu ├── Assets.xcassets ├── AppIcon.appiconset │ ├── AppIcon29x29@2x.png │ ├── AppIcon29x29@3x.png │ ├── AppIcon40x40@2x.png │ ├── AppIcon40x40@3x.png │ ├── AppIcon60x60@2x.png │ ├── AppIcon60x60@3x.png │ └── Contents.json ├── Contents.json ├── LaunchImage.launchimage │ ├── Contents.json │ ├── LaunchImage-568h@2x.png │ ├── LaunchImage-800-667h@2x.png │ ├── LaunchImage-800-Portrait-736h@3x.png │ ├── LaunchImage.png │ └── LaunchImage@2x-1.png ├── TabBar │ ├── Contents.json │ ├── account_highlight.imageset │ │ ├── Contents.json │ │ └── account_highlight@2x.png │ ├── account_normal.imageset │ │ ├── Contents.json │ │ └── account_normal@2x.png │ ├── fish_highlight.imageset │ │ ├── Contents.json │ │ └── fish_highlight@2x.png │ ├── fish_normal.imageset │ │ ├── Contents.json │ │ └── fish_normal@2x.png │ ├── home_highlight.imageset │ │ ├── Contents.json │ │ └── home_highlight@2x.png │ ├── home_normal.imageset │ │ ├── Contents.json │ │ └── home_normal@2x.png │ ├── message_highlight.imageset │ │ ├── Contents.json │ │ └── message_highlight@2x.png │ ├── message_normal.imageset │ │ ├── Contents.json │ │ └── message_normal@2x.png │ ├── mycity_highlight.imageset │ │ ├── Contents.json │ │ └── mycity_highlight@2x.png │ ├── mycity_normal.imageset │ │ ├── Contents.json │ │ └── mycity_normal@2x.png │ ├── post_normal.imageset │ │ ├── Contents.json │ │ └── post_normal@2x.png │ └── tapbar_top_line.imageset │ │ ├── Contents.json │ │ └── tapbar_top_line@2x.png ├── header_back_icon.imageset │ ├── Contents.json │ ├── header_back_icon.png │ └── header_back_icon@2x.png └── header_back_icon_highlight.imageset │ ├── Contents.json │ ├── header_back_icon_highlight.png │ └── header_back_icon_highlight@2x.png ├── Base.lproj └── LaunchScreen.storyboard ├── Classes ├── Fish │ └── Controller │ │ ├── LBFishViewController.h │ │ └── LBFishViewController.m ├── Home │ └── Controller │ │ ├── LBHomeViewController.h │ │ └── LBHomeViewController.m ├── Main │ ├── Category │ │ ├── UIImage+Image.h │ │ ├── UIImage+Image.m │ │ ├── UIView+LBExtension.h │ │ └── UIView+LBExtension.m │ ├── Controller │ │ ├── LBNavigationController.h │ │ ├── LBNavigationController.m │ │ ├── LBTabBarController.h │ │ └── LBTabBarController.m │ └── View │ │ ├── LBTabBar.h │ │ └── LBTabBar.m ├── Message │ └── Controller │ │ ├── LBMessageViewController.h │ │ └── LBMessageViewController.m ├── Mine │ └── Controller │ │ ├── LBMineViewController.h │ │ └── LBMineViewController.m ├── Other │ ├── AppDelegate.h │ ├── AppDelegate.m │ └── main.m └── Post │ └── Controller │ ├── LBpostViewController.h │ └── LBpostViewController.m └── Info.plist /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | *.dSYM.zip 28 | *.dSYM 29 | 30 | # CocoaPods 31 | # 32 | # We recommend against adding the Pods directory to your .gitignore. However 33 | # you should judge for yourself, the pros and cons are mentioned at: 34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 35 | # 36 | # Pods/ 37 | 38 | # Carthage 39 | # 40 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 41 | # Carthage/Checkouts 42 | 43 | Carthage/Build 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 51 | 52 | fastlane/report.xml 53 | fastlane/screenshots 54 | 55 | #Code Injection 56 | # 57 | # After new code Injection tools there's a generated folder /iOSInjectionProject 58 | # https://github.com/johnno1962/injectionforxcode 59 | 60 | iOSInjectionProject/ 61 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # iOS_XianYu 2 | 仿闲鱼底部tabbar中间按钮凸出,按钮整个部位点击有反应 3 | 感谢支持 4 | -------------------------------------------------------------------------------- /XianYu.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | E44211541CF9DBD900924DCD /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E44211531CF9DBD900924DCD /* Assets.xcassets */; }; 11 | E44211571CF9DBD900924DCD /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E44211551CF9DBD900924DCD /* LaunchScreen.storyboard */; }; 12 | E442117E1CF9E48A00924DCD /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E44211761CF9E48A00924DCD /* AppDelegate.m */; }; 13 | E44211801CF9E48A00924DCD /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E44211781CF9E48A00924DCD /* main.m */; }; 14 | E44211881CF9E54600924DCD /* LBFishViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E44211871CF9E54600924DCD /* LBFishViewController.m */; }; 15 | E442118B1CF9E55400924DCD /* LBHomeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E442118A1CF9E55400924DCD /* LBHomeViewController.m */; }; 16 | E442118E1CF9E5AF00924DCD /* LBMessageViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E442118D1CF9E5AF00924DCD /* LBMessageViewController.m */; }; 17 | E44211911CF9E5C400924DCD /* LBMineViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E44211901CF9E5C400924DCD /* LBMineViewController.m */; }; 18 | E44211941CF9E60000924DCD /* LBpostViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E44211931CF9E60000924DCD /* LBpostViewController.m */; }; 19 | E442119D1CF9E69000924DCD /* LBTabBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = E442119A1CF9E69000924DCD /* LBTabBarController.m */; }; 20 | E442119E1CF9E69000924DCD /* LBNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = E442119C1CF9E69000924DCD /* LBNavigationController.m */; }; 21 | E44211A11CF9E6AB00924DCD /* LBTabBar.m in Sources */ = {isa = PBXBuildFile; fileRef = E44211A01CF9E6AB00924DCD /* LBTabBar.m */; }; 22 | E44211A51CF9E7D800924DCD /* UIImage+Image.m in Sources */ = {isa = PBXBuildFile; fileRef = E44211A41CF9E7D800924DCD /* UIImage+Image.m */; }; 23 | E44211A81CF9EABB00924DCD /* UIView+LBExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = E44211A71CF9EABB00924DCD /* UIView+LBExtension.m */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXFileReference section */ 27 | E44211441CF9DBD900924DCD /* XianYu.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = XianYu.app; sourceTree = BUILT_PRODUCTS_DIR; }; 28 | E44211531CF9DBD900924DCD /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 29 | E44211561CF9DBD900924DCD /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 30 | E44211751CF9E48A00924DCD /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 31 | E44211761CF9E48A00924DCD /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 32 | E44211781CF9E48A00924DCD /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 33 | E44211841CF9E4F800924DCD /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 34 | E44211861CF9E54600924DCD /* LBFishViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LBFishViewController.h; sourceTree = ""; }; 35 | E44211871CF9E54600924DCD /* LBFishViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LBFishViewController.m; sourceTree = ""; }; 36 | E44211891CF9E55400924DCD /* LBHomeViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LBHomeViewController.h; sourceTree = ""; }; 37 | E442118A1CF9E55400924DCD /* LBHomeViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LBHomeViewController.m; sourceTree = ""; }; 38 | E442118C1CF9E5AF00924DCD /* LBMessageViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LBMessageViewController.h; sourceTree = ""; }; 39 | E442118D1CF9E5AF00924DCD /* LBMessageViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LBMessageViewController.m; sourceTree = ""; }; 40 | E442118F1CF9E5C400924DCD /* LBMineViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LBMineViewController.h; sourceTree = ""; }; 41 | E44211901CF9E5C400924DCD /* LBMineViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LBMineViewController.m; sourceTree = ""; }; 42 | E44211921CF9E60000924DCD /* LBpostViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LBpostViewController.h; sourceTree = ""; }; 43 | E44211931CF9E60000924DCD /* LBpostViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LBpostViewController.m; sourceTree = ""; }; 44 | E44211991CF9E69000924DCD /* LBTabBarController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LBTabBarController.h; sourceTree = ""; }; 45 | E442119A1CF9E69000924DCD /* LBTabBarController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LBTabBarController.m; sourceTree = ""; }; 46 | E442119B1CF9E69000924DCD /* LBNavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LBNavigationController.h; sourceTree = ""; }; 47 | E442119C1CF9E69000924DCD /* LBNavigationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LBNavigationController.m; sourceTree = ""; }; 48 | E442119F1CF9E6AB00924DCD /* LBTabBar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LBTabBar.h; sourceTree = ""; }; 49 | E44211A01CF9E6AB00924DCD /* LBTabBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LBTabBar.m; sourceTree = ""; }; 50 | E44211A31CF9E7D800924DCD /* UIImage+Image.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImage+Image.h"; sourceTree = ""; }; 51 | E44211A41CF9E7D800924DCD /* UIImage+Image.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImage+Image.m"; sourceTree = ""; }; 52 | E44211A61CF9EABB00924DCD /* UIView+LBExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+LBExtension.h"; sourceTree = ""; }; 53 | E44211A71CF9EABB00924DCD /* UIView+LBExtension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+LBExtension.m"; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | E44211411CF9DBD900924DCD /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | /* End PBXFrameworksBuildPhase section */ 65 | 66 | /* Begin PBXGroup section */ 67 | E442113B1CF9DBD900924DCD = { 68 | isa = PBXGroup; 69 | children = ( 70 | E44211461CF9DBD900924DCD /* XianYu */, 71 | E44211451CF9DBD900924DCD /* Products */, 72 | ); 73 | sourceTree = ""; 74 | }; 75 | E44211451CF9DBD900924DCD /* Products */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | E44211441CF9DBD900924DCD /* XianYu.app */, 79 | ); 80 | name = Products; 81 | sourceTree = ""; 82 | }; 83 | E44211461CF9DBD900924DCD /* XianYu */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | E442115E1CF9E48A00924DCD /* Classes */, 87 | E44211471CF9DBD900924DCD /* Supporting Files */, 88 | ); 89 | path = XianYu; 90 | sourceTree = ""; 91 | }; 92 | E44211471CF9DBD900924DCD /* Supporting Files */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | E44211841CF9E4F800924DCD /* Info.plist */, 96 | E44211531CF9DBD900924DCD /* Assets.xcassets */, 97 | E44211551CF9DBD900924DCD /* LaunchScreen.storyboard */, 98 | ); 99 | name = "Supporting Files"; 100 | sourceTree = ""; 101 | }; 102 | E442115E1CF9E48A00924DCD /* Classes */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | E442115F1CF9E48A00924DCD /* Fish(鱼塘) */, 106 | E44211641CF9E48A00924DCD /* Home(首页) */, 107 | E44211691CF9E48A00924DCD /* Main(主要) */, 108 | E442116A1CF9E48A00924DCD /* Message(消息) */, 109 | E442116F1CF9E48A00924DCD /* Mine(我的) */, 110 | E44211741CF9E48A00924DCD /* Other(其他) */, 111 | E44211791CF9E48A00924DCD /* Post(发布) */, 112 | ); 113 | path = Classes; 114 | sourceTree = ""; 115 | }; 116 | E442115F1CF9E48A00924DCD /* Fish(鱼塘) */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | E44211601CF9E48A00924DCD /* Controller */, 120 | E44211611CF9E48A00924DCD /* Model */, 121 | E44211621CF9E48A00924DCD /* Tool */, 122 | E44211631CF9E48A00924DCD /* View */, 123 | ); 124 | name = "Fish(鱼塘)"; 125 | path = Fish; 126 | sourceTree = ""; 127 | }; 128 | E44211601CF9E48A00924DCD /* Controller */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | E44211861CF9E54600924DCD /* LBFishViewController.h */, 132 | E44211871CF9E54600924DCD /* LBFishViewController.m */, 133 | ); 134 | path = Controller; 135 | sourceTree = ""; 136 | }; 137 | E44211611CF9E48A00924DCD /* Model */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | ); 141 | path = Model; 142 | sourceTree = ""; 143 | }; 144 | E44211621CF9E48A00924DCD /* Tool */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | ); 148 | path = Tool; 149 | sourceTree = ""; 150 | }; 151 | E44211631CF9E48A00924DCD /* View */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | ); 155 | path = View; 156 | sourceTree = ""; 157 | }; 158 | E44211641CF9E48A00924DCD /* Home(首页) */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | E44211651CF9E48A00924DCD /* Controller */, 162 | E44211661CF9E48A00924DCD /* Model */, 163 | E44211671CF9E48A00924DCD /* Tool */, 164 | E44211681CF9E48A00924DCD /* View */, 165 | ); 166 | name = "Home(首页)"; 167 | path = Home; 168 | sourceTree = ""; 169 | }; 170 | E44211651CF9E48A00924DCD /* Controller */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | E44211891CF9E55400924DCD /* LBHomeViewController.h */, 174 | E442118A1CF9E55400924DCD /* LBHomeViewController.m */, 175 | ); 176 | path = Controller; 177 | sourceTree = ""; 178 | }; 179 | E44211661CF9E48A00924DCD /* Model */ = { 180 | isa = PBXGroup; 181 | children = ( 182 | ); 183 | path = Model; 184 | sourceTree = ""; 185 | }; 186 | E44211671CF9E48A00924DCD /* Tool */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | ); 190 | path = Tool; 191 | sourceTree = ""; 192 | }; 193 | E44211681CF9E48A00924DCD /* View */ = { 194 | isa = PBXGroup; 195 | children = ( 196 | ); 197 | path = View; 198 | sourceTree = ""; 199 | }; 200 | E44211691CF9E48A00924DCD /* Main(主要) */ = { 201 | isa = PBXGroup; 202 | children = ( 203 | E44211A21CF9E7C500924DCD /* Category */, 204 | E44211951CF9E66C00924DCD /* Controller */, 205 | E44211961CF9E66C00924DCD /* Model */, 206 | E44211971CF9E66C00924DCD /* Tool */, 207 | E44211981CF9E66C00924DCD /* View */, 208 | ); 209 | name = "Main(主要)"; 210 | path = Main; 211 | sourceTree = ""; 212 | }; 213 | E442116A1CF9E48A00924DCD /* Message(消息) */ = { 214 | isa = PBXGroup; 215 | children = ( 216 | E442116B1CF9E48A00924DCD /* Controller */, 217 | E442116C1CF9E48A00924DCD /* Model */, 218 | E442116D1CF9E48A00924DCD /* Tool */, 219 | E442116E1CF9E48A00924DCD /* View */, 220 | ); 221 | name = "Message(消息)"; 222 | path = Message; 223 | sourceTree = ""; 224 | }; 225 | E442116B1CF9E48A00924DCD /* Controller */ = { 226 | isa = PBXGroup; 227 | children = ( 228 | E442118C1CF9E5AF00924DCD /* LBMessageViewController.h */, 229 | E442118D1CF9E5AF00924DCD /* LBMessageViewController.m */, 230 | ); 231 | path = Controller; 232 | sourceTree = ""; 233 | }; 234 | E442116C1CF9E48A00924DCD /* Model */ = { 235 | isa = PBXGroup; 236 | children = ( 237 | ); 238 | path = Model; 239 | sourceTree = ""; 240 | }; 241 | E442116D1CF9E48A00924DCD /* Tool */ = { 242 | isa = PBXGroup; 243 | children = ( 244 | ); 245 | path = Tool; 246 | sourceTree = ""; 247 | }; 248 | E442116E1CF9E48A00924DCD /* View */ = { 249 | isa = PBXGroup; 250 | children = ( 251 | ); 252 | path = View; 253 | sourceTree = ""; 254 | }; 255 | E442116F1CF9E48A00924DCD /* Mine(我的) */ = { 256 | isa = PBXGroup; 257 | children = ( 258 | E44211701CF9E48A00924DCD /* Controller */, 259 | E44211711CF9E48A00924DCD /* Model */, 260 | E44211721CF9E48A00924DCD /* Tool */, 261 | E44211731CF9E48A00924DCD /* View */, 262 | ); 263 | name = "Mine(我的)"; 264 | path = Mine; 265 | sourceTree = ""; 266 | }; 267 | E44211701CF9E48A00924DCD /* Controller */ = { 268 | isa = PBXGroup; 269 | children = ( 270 | E442118F1CF9E5C400924DCD /* LBMineViewController.h */, 271 | E44211901CF9E5C400924DCD /* LBMineViewController.m */, 272 | ); 273 | path = Controller; 274 | sourceTree = ""; 275 | }; 276 | E44211711CF9E48A00924DCD /* Model */ = { 277 | isa = PBXGroup; 278 | children = ( 279 | ); 280 | path = Model; 281 | sourceTree = ""; 282 | }; 283 | E44211721CF9E48A00924DCD /* Tool */ = { 284 | isa = PBXGroup; 285 | children = ( 286 | ); 287 | path = Tool; 288 | sourceTree = ""; 289 | }; 290 | E44211731CF9E48A00924DCD /* View */ = { 291 | isa = PBXGroup; 292 | children = ( 293 | ); 294 | path = View; 295 | sourceTree = ""; 296 | }; 297 | E44211741CF9E48A00924DCD /* Other(其他) */ = { 298 | isa = PBXGroup; 299 | children = ( 300 | E44211751CF9E48A00924DCD /* AppDelegate.h */, 301 | E44211761CF9E48A00924DCD /* AppDelegate.m */, 302 | E44211781CF9E48A00924DCD /* main.m */, 303 | ); 304 | name = "Other(其他)"; 305 | path = Other; 306 | sourceTree = ""; 307 | }; 308 | E44211791CF9E48A00924DCD /* Post(发布) */ = { 309 | isa = PBXGroup; 310 | children = ( 311 | E442117A1CF9E48A00924DCD /* Controller */, 312 | E442117B1CF9E48A00924DCD /* Model */, 313 | E442117C1CF9E48A00924DCD /* Tool */, 314 | E442117D1CF9E48A00924DCD /* View */, 315 | ); 316 | name = "Post(发布)"; 317 | path = Post; 318 | sourceTree = ""; 319 | }; 320 | E442117A1CF9E48A00924DCD /* Controller */ = { 321 | isa = PBXGroup; 322 | children = ( 323 | E44211921CF9E60000924DCD /* LBpostViewController.h */, 324 | E44211931CF9E60000924DCD /* LBpostViewController.m */, 325 | ); 326 | path = Controller; 327 | sourceTree = ""; 328 | }; 329 | E442117B1CF9E48A00924DCD /* Model */ = { 330 | isa = PBXGroup; 331 | children = ( 332 | ); 333 | path = Model; 334 | sourceTree = ""; 335 | }; 336 | E442117C1CF9E48A00924DCD /* Tool */ = { 337 | isa = PBXGroup; 338 | children = ( 339 | ); 340 | path = Tool; 341 | sourceTree = ""; 342 | }; 343 | E442117D1CF9E48A00924DCD /* View */ = { 344 | isa = PBXGroup; 345 | children = ( 346 | ); 347 | path = View; 348 | sourceTree = ""; 349 | }; 350 | E44211951CF9E66C00924DCD /* Controller */ = { 351 | isa = PBXGroup; 352 | children = ( 353 | E44211991CF9E69000924DCD /* LBTabBarController.h */, 354 | E442119A1CF9E69000924DCD /* LBTabBarController.m */, 355 | E442119B1CF9E69000924DCD /* LBNavigationController.h */, 356 | E442119C1CF9E69000924DCD /* LBNavigationController.m */, 357 | ); 358 | path = Controller; 359 | sourceTree = ""; 360 | }; 361 | E44211961CF9E66C00924DCD /* Model */ = { 362 | isa = PBXGroup; 363 | children = ( 364 | ); 365 | path = Model; 366 | sourceTree = ""; 367 | }; 368 | E44211971CF9E66C00924DCD /* Tool */ = { 369 | isa = PBXGroup; 370 | children = ( 371 | ); 372 | path = Tool; 373 | sourceTree = ""; 374 | }; 375 | E44211981CF9E66C00924DCD /* View */ = { 376 | isa = PBXGroup; 377 | children = ( 378 | E442119F1CF9E6AB00924DCD /* LBTabBar.h */, 379 | E44211A01CF9E6AB00924DCD /* LBTabBar.m */, 380 | ); 381 | path = View; 382 | sourceTree = ""; 383 | }; 384 | E44211A21CF9E7C500924DCD /* Category */ = { 385 | isa = PBXGroup; 386 | children = ( 387 | E44211A61CF9EABB00924DCD /* UIView+LBExtension.h */, 388 | E44211A71CF9EABB00924DCD /* UIView+LBExtension.m */, 389 | E44211A31CF9E7D800924DCD /* UIImage+Image.h */, 390 | E44211A41CF9E7D800924DCD /* UIImage+Image.m */, 391 | ); 392 | path = Category; 393 | sourceTree = ""; 394 | }; 395 | /* End PBXGroup section */ 396 | 397 | /* Begin PBXNativeTarget section */ 398 | E44211431CF9DBD900924DCD /* XianYu */ = { 399 | isa = PBXNativeTarget; 400 | buildConfigurationList = E442115B1CF9DBD900924DCD /* Build configuration list for PBXNativeTarget "XianYu" */; 401 | buildPhases = ( 402 | E44211401CF9DBD900924DCD /* Sources */, 403 | E44211411CF9DBD900924DCD /* Frameworks */, 404 | E44211421CF9DBD900924DCD /* Resources */, 405 | ); 406 | buildRules = ( 407 | ); 408 | dependencies = ( 409 | ); 410 | name = XianYu; 411 | productName = XianYu; 412 | productReference = E44211441CF9DBD900924DCD /* XianYu.app */; 413 | productType = "com.apple.product-type.application"; 414 | }; 415 | /* End PBXNativeTarget section */ 416 | 417 | /* Begin PBXProject section */ 418 | E442113C1CF9DBD900924DCD /* Project object */ = { 419 | isa = PBXProject; 420 | attributes = { 421 | LastUpgradeCheck = 0720; 422 | ORGANIZATIONNAME = "li bo"; 423 | TargetAttributes = { 424 | E44211431CF9DBD900924DCD = { 425 | CreatedOnToolsVersion = 7.2.1; 426 | }; 427 | }; 428 | }; 429 | buildConfigurationList = E442113F1CF9DBD900924DCD /* Build configuration list for PBXProject "XianYu" */; 430 | compatibilityVersion = "Xcode 3.2"; 431 | developmentRegion = English; 432 | hasScannedForEncodings = 0; 433 | knownRegions = ( 434 | en, 435 | Base, 436 | ); 437 | mainGroup = E442113B1CF9DBD900924DCD; 438 | productRefGroup = E44211451CF9DBD900924DCD /* Products */; 439 | projectDirPath = ""; 440 | projectRoot = ""; 441 | targets = ( 442 | E44211431CF9DBD900924DCD /* XianYu */, 443 | ); 444 | }; 445 | /* End PBXProject section */ 446 | 447 | /* Begin PBXResourcesBuildPhase section */ 448 | E44211421CF9DBD900924DCD /* Resources */ = { 449 | isa = PBXResourcesBuildPhase; 450 | buildActionMask = 2147483647; 451 | files = ( 452 | E44211571CF9DBD900924DCD /* LaunchScreen.storyboard in Resources */, 453 | E44211541CF9DBD900924DCD /* Assets.xcassets in Resources */, 454 | ); 455 | runOnlyForDeploymentPostprocessing = 0; 456 | }; 457 | /* End PBXResourcesBuildPhase section */ 458 | 459 | /* Begin PBXSourcesBuildPhase section */ 460 | E44211401CF9DBD900924DCD /* Sources */ = { 461 | isa = PBXSourcesBuildPhase; 462 | buildActionMask = 2147483647; 463 | files = ( 464 | E44211801CF9E48A00924DCD /* main.m in Sources */, 465 | E442119E1CF9E69000924DCD /* LBNavigationController.m in Sources */, 466 | E44211911CF9E5C400924DCD /* LBMineViewController.m in Sources */, 467 | E442117E1CF9E48A00924DCD /* AppDelegate.m in Sources */, 468 | E44211A51CF9E7D800924DCD /* UIImage+Image.m in Sources */, 469 | E44211881CF9E54600924DCD /* LBFishViewController.m in Sources */, 470 | E44211A81CF9EABB00924DCD /* UIView+LBExtension.m in Sources */, 471 | E442118E1CF9E5AF00924DCD /* LBMessageViewController.m in Sources */, 472 | E442119D1CF9E69000924DCD /* LBTabBarController.m in Sources */, 473 | E44211941CF9E60000924DCD /* LBpostViewController.m in Sources */, 474 | E442118B1CF9E55400924DCD /* LBHomeViewController.m in Sources */, 475 | E44211A11CF9E6AB00924DCD /* LBTabBar.m in Sources */, 476 | ); 477 | runOnlyForDeploymentPostprocessing = 0; 478 | }; 479 | /* End PBXSourcesBuildPhase section */ 480 | 481 | /* Begin PBXVariantGroup section */ 482 | E44211551CF9DBD900924DCD /* LaunchScreen.storyboard */ = { 483 | isa = PBXVariantGroup; 484 | children = ( 485 | E44211561CF9DBD900924DCD /* Base */, 486 | ); 487 | name = LaunchScreen.storyboard; 488 | sourceTree = ""; 489 | }; 490 | /* End PBXVariantGroup section */ 491 | 492 | /* Begin XCBuildConfiguration section */ 493 | E44211591CF9DBD900924DCD /* Debug */ = { 494 | isa = XCBuildConfiguration; 495 | buildSettings = { 496 | ALWAYS_SEARCH_USER_PATHS = NO; 497 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 498 | CLANG_CXX_LIBRARY = "libc++"; 499 | CLANG_ENABLE_MODULES = YES; 500 | CLANG_ENABLE_OBJC_ARC = YES; 501 | CLANG_WARN_BOOL_CONVERSION = YES; 502 | CLANG_WARN_CONSTANT_CONVERSION = YES; 503 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 504 | CLANG_WARN_EMPTY_BODY = YES; 505 | CLANG_WARN_ENUM_CONVERSION = YES; 506 | CLANG_WARN_INT_CONVERSION = YES; 507 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 508 | CLANG_WARN_UNREACHABLE_CODE = YES; 509 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 510 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 511 | COPY_PHASE_STRIP = NO; 512 | DEBUG_INFORMATION_FORMAT = dwarf; 513 | ENABLE_STRICT_OBJC_MSGSEND = YES; 514 | ENABLE_TESTABILITY = YES; 515 | GCC_C_LANGUAGE_STANDARD = gnu99; 516 | GCC_DYNAMIC_NO_PIC = NO; 517 | GCC_NO_COMMON_BLOCKS = YES; 518 | GCC_OPTIMIZATION_LEVEL = 0; 519 | GCC_PREPROCESSOR_DEFINITIONS = ( 520 | "DEBUG=1", 521 | "$(inherited)", 522 | ); 523 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 524 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 525 | GCC_WARN_UNDECLARED_SELECTOR = YES; 526 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 527 | GCC_WARN_UNUSED_FUNCTION = YES; 528 | GCC_WARN_UNUSED_VARIABLE = YES; 529 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 530 | MTL_ENABLE_DEBUG_INFO = YES; 531 | ONLY_ACTIVE_ARCH = YES; 532 | SDKROOT = iphoneos; 533 | }; 534 | name = Debug; 535 | }; 536 | E442115A1CF9DBD900924DCD /* Release */ = { 537 | isa = XCBuildConfiguration; 538 | buildSettings = { 539 | ALWAYS_SEARCH_USER_PATHS = NO; 540 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 541 | CLANG_CXX_LIBRARY = "libc++"; 542 | CLANG_ENABLE_MODULES = YES; 543 | CLANG_ENABLE_OBJC_ARC = YES; 544 | CLANG_WARN_BOOL_CONVERSION = YES; 545 | CLANG_WARN_CONSTANT_CONVERSION = YES; 546 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 547 | CLANG_WARN_EMPTY_BODY = YES; 548 | CLANG_WARN_ENUM_CONVERSION = YES; 549 | CLANG_WARN_INT_CONVERSION = YES; 550 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 551 | CLANG_WARN_UNREACHABLE_CODE = YES; 552 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 553 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 554 | COPY_PHASE_STRIP = NO; 555 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 556 | ENABLE_NS_ASSERTIONS = NO; 557 | ENABLE_STRICT_OBJC_MSGSEND = YES; 558 | GCC_C_LANGUAGE_STANDARD = gnu99; 559 | GCC_NO_COMMON_BLOCKS = YES; 560 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 561 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 562 | GCC_WARN_UNDECLARED_SELECTOR = YES; 563 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 564 | GCC_WARN_UNUSED_FUNCTION = YES; 565 | GCC_WARN_UNUSED_VARIABLE = YES; 566 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 567 | MTL_ENABLE_DEBUG_INFO = NO; 568 | SDKROOT = iphoneos; 569 | VALIDATE_PRODUCT = YES; 570 | }; 571 | name = Release; 572 | }; 573 | E442115C1CF9DBD900924DCD /* Debug */ = { 574 | isa = XCBuildConfiguration; 575 | buildSettings = { 576 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 577 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 578 | CODE_SIGN_IDENTITY = "iPhone Developer"; 579 | INFOPLIST_FILE = XianYu/Info.plist; 580 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 581 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 582 | PRODUCT_BUNDLE_IDENTIFIER = it.com.XianYu; 583 | PRODUCT_NAME = "$(TARGET_NAME)"; 584 | }; 585 | name = Debug; 586 | }; 587 | E442115D1CF9DBD900924DCD /* Release */ = { 588 | isa = XCBuildConfiguration; 589 | buildSettings = { 590 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 591 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 592 | CODE_SIGN_IDENTITY = "iPhone Developer"; 593 | INFOPLIST_FILE = XianYu/Info.plist; 594 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 595 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 596 | PRODUCT_BUNDLE_IDENTIFIER = it.com.XianYu; 597 | PRODUCT_NAME = "$(TARGET_NAME)"; 598 | }; 599 | name = Release; 600 | }; 601 | /* End XCBuildConfiguration section */ 602 | 603 | /* Begin XCConfigurationList section */ 604 | E442113F1CF9DBD900924DCD /* Build configuration list for PBXProject "XianYu" */ = { 605 | isa = XCConfigurationList; 606 | buildConfigurations = ( 607 | E44211591CF9DBD900924DCD /* Debug */, 608 | E442115A1CF9DBD900924DCD /* Release */, 609 | ); 610 | defaultConfigurationIsVisible = 0; 611 | defaultConfigurationName = Release; 612 | }; 613 | E442115B1CF9DBD900924DCD /* Build configuration list for PBXNativeTarget "XianYu" */ = { 614 | isa = XCConfigurationList; 615 | buildConfigurations = ( 616 | E442115C1CF9DBD900924DCD /* Debug */, 617 | E442115D1CF9DBD900924DCD /* Release */, 618 | ); 619 | defaultConfigurationIsVisible = 0; 620 | }; 621 | /* End XCConfigurationList section */ 622 | }; 623 | rootObject = E442113C1CF9DBD900924DCD /* Project object */; 624 | } 625 | -------------------------------------------------------------------------------- /XianYu.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/AppIcon.appiconset/AppIcon29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/AppIcon.appiconset/AppIcon29x29@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/AppIcon.appiconset/AppIcon29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/AppIcon.appiconset/AppIcon29x29@3x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/AppIcon.appiconset/AppIcon40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/AppIcon.appiconset/AppIcon40x40@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/AppIcon.appiconset/AppIcon40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/AppIcon.appiconset/AppIcon40x40@3x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/AppIcon.appiconset/AppIcon60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/AppIcon.appiconset/AppIcon60x60@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/AppIcon.appiconset/AppIcon60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/AppIcon.appiconset/AppIcon60x60@3x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "size" : "40x40", 15 | "idiom" : "iphone", 16 | "filename" : "AppIcon40x40@2x.png", 17 | "scale" : "2x" 18 | }, 19 | { 20 | "size" : "40x40", 21 | "idiom" : "iphone", 22 | "filename" : "AppIcon40x40@3x.png", 23 | "scale" : "3x" 24 | }, 25 | { 26 | "size" : "60x60", 27 | "idiom" : "iphone", 28 | "filename" : "AppIcon60x60@2x.png", 29 | "scale" : "2x" 30 | }, 31 | { 32 | "size" : "60x60", 33 | "idiom" : "iphone", 34 | "filename" : "AppIcon60x60@3x.png", 35 | "scale" : "3x" 36 | }, 37 | { 38 | "size" : "24x24", 39 | "idiom" : "watch", 40 | "scale" : "2x", 41 | "role" : "notificationCenter", 42 | "subtype" : "38mm" 43 | }, 44 | { 45 | "size" : "27.5x27.5", 46 | "idiom" : "watch", 47 | "scale" : "2x", 48 | "role" : "notificationCenter", 49 | "subtype" : "42mm" 50 | }, 51 | { 52 | "size" : "29x29", 53 | "idiom" : "watch", 54 | "filename" : "AppIcon29x29@2x.png", 55 | "role" : "companionSettings", 56 | "scale" : "2x" 57 | }, 58 | { 59 | "size" : "29x29", 60 | "idiom" : "watch", 61 | "filename" : "AppIcon29x29@3x.png", 62 | "role" : "companionSettings", 63 | "scale" : "3x" 64 | }, 65 | { 66 | "size" : "40x40", 67 | "idiom" : "watch", 68 | "scale" : "2x", 69 | "role" : "appLauncher", 70 | "subtype" : "38mm" 71 | }, 72 | { 73 | "size" : "86x86", 74 | "idiom" : "watch", 75 | "scale" : "2x", 76 | "role" : "quickLook", 77 | "subtype" : "38mm" 78 | }, 79 | { 80 | "size" : "98x98", 81 | "idiom" : "watch", 82 | "scale" : "2x", 83 | "role" : "quickLook", 84 | "subtype" : "42mm" 85 | } 86 | ], 87 | "info" : { 88 | "version" : 1, 89 | "author" : "xcode" 90 | } 91 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "extent" : "full-screen", 5 | "idiom" : "iphone", 6 | "subtype" : "736h", 7 | "filename" : "LaunchImage-800-Portrait-736h@3x.png", 8 | "minimum-system-version" : "8.0", 9 | "orientation" : "portrait", 10 | "scale" : "3x" 11 | }, 12 | { 13 | "orientation" : "landscape", 14 | "idiom" : "iphone", 15 | "extent" : "full-screen", 16 | "minimum-system-version" : "8.0", 17 | "subtype" : "736h", 18 | "scale" : "3x" 19 | }, 20 | { 21 | "extent" : "full-screen", 22 | "idiom" : "iphone", 23 | "subtype" : "667h", 24 | "filename" : "LaunchImage-800-667h@2x.png", 25 | "minimum-system-version" : "8.0", 26 | "orientation" : "portrait", 27 | "scale" : "2x" 28 | }, 29 | { 30 | "orientation" : "portrait", 31 | "idiom" : "iphone", 32 | "extent" : "full-screen", 33 | "minimum-system-version" : "7.0", 34 | "scale" : "2x" 35 | }, 36 | { 37 | "extent" : "full-screen", 38 | "idiom" : "iphone", 39 | "subtype" : "retina4", 40 | "filename" : "LaunchImage-568h@2x.png", 41 | "minimum-system-version" : "7.0", 42 | "orientation" : "portrait", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "orientation" : "portrait", 47 | "idiom" : "iphone", 48 | "filename" : "LaunchImage.png", 49 | "extent" : "full-screen", 50 | "scale" : "1x" 51 | }, 52 | { 53 | "orientation" : "portrait", 54 | "idiom" : "iphone", 55 | "filename" : "LaunchImage@2x-1.png", 56 | "extent" : "full-screen", 57 | "scale" : "2x" 58 | }, 59 | { 60 | "orientation" : "portrait", 61 | "idiom" : "iphone", 62 | "extent" : "full-screen", 63 | "subtype" : "retina4", 64 | "scale" : "2x" 65 | } 66 | ], 67 | "info" : { 68 | "version" : 1, 69 | "author" : "xcode" 70 | } 71 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/LaunchImage.launchimage/LaunchImage-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/LaunchImage.launchimage/LaunchImage-568h@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/LaunchImage.launchimage/LaunchImage-800-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/LaunchImage.launchimage/LaunchImage-800-667h@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/LaunchImage.launchimage/LaunchImage-800-Portrait-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/LaunchImage.launchimage/LaunchImage-800-Portrait-736h@3x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/LaunchImage.launchimage/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/LaunchImage.launchimage/LaunchImage.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/LaunchImage.launchimage/LaunchImage@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/LaunchImage.launchimage/LaunchImage@2x-1.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/account_highlight.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "account_highlight@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/account_highlight.imageset/account_highlight@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/TabBar/account_highlight.imageset/account_highlight@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/account_normal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "account_normal@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/account_normal.imageset/account_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/TabBar/account_normal.imageset/account_normal@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/fish_highlight.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "fish_highlight@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/fish_highlight.imageset/fish_highlight@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/TabBar/fish_highlight.imageset/fish_highlight@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/fish_normal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "fish_normal@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/fish_normal.imageset/fish_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/TabBar/fish_normal.imageset/fish_normal@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/home_highlight.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "home_highlight@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/home_highlight.imageset/home_highlight@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/TabBar/home_highlight.imageset/home_highlight@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/home_normal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "home_normal@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/home_normal.imageset/home_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/TabBar/home_normal.imageset/home_normal@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/message_highlight.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "message_highlight@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/message_highlight.imageset/message_highlight@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/TabBar/message_highlight.imageset/message_highlight@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/message_normal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "message_normal@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/message_normal.imageset/message_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/TabBar/message_normal.imageset/message_normal@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/mycity_highlight.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "mycity_highlight@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/mycity_highlight.imageset/mycity_highlight@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/TabBar/mycity_highlight.imageset/mycity_highlight@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/mycity_normal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "mycity_normal@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/mycity_normal.imageset/mycity_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/TabBar/mycity_normal.imageset/mycity_normal@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/post_normal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "post_normal@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/post_normal.imageset/post_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/TabBar/post_normal.imageset/post_normal@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/tapbar_top_line.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tapbar_top_line@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/TabBar/tapbar_top_line.imageset/tapbar_top_line@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/TabBar/tapbar_top_line.imageset/tapbar_top_line@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/header_back_icon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "header_back_icon.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "header_back_icon@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | }, 22 | "properties" : { 23 | "template-rendering-intent" : "original" 24 | } 25 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/header_back_icon.imageset/header_back_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/header_back_icon.imageset/header_back_icon.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/header_back_icon.imageset/header_back_icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/header_back_icon.imageset/header_back_icon@2x.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/header_back_icon_highlight.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "header_back_icon_highlight.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "header_back_icon_highlight@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | }, 22 | "properties" : { 23 | "template-rendering-intent" : "original" 24 | } 25 | } -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/header_back_icon_highlight.imageset/header_back_icon_highlight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/header_back_icon_highlight.imageset/header_back_icon_highlight.png -------------------------------------------------------------------------------- /XianYu/Assets.xcassets/header_back_icon_highlight.imageset/header_back_icon_highlight@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LBCoderLee/iOS_XianYu/b04cd423ed4bc94f302793ef336d0a853a449cd8/XianYu/Assets.xcassets/header_back_icon_highlight.imageset/header_back_icon_highlight@2x.png -------------------------------------------------------------------------------- /XianYu/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /XianYu/Classes/Fish/Controller/LBFishViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // LBFishViewController.h 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LBFishViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /XianYu/Classes/Fish/Controller/LBFishViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // LBFishViewController.m 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import "LBFishViewController.h" 10 | 11 | @interface LBFishViewController () 12 | 13 | @end 14 | 15 | @implementation LBFishViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view. 20 | } 21 | 22 | - (void)didReceiveMemoryWarning { 23 | [super didReceiveMemoryWarning]; 24 | // Dispose of any resources that can be recreated. 25 | } 26 | 27 | /* 28 | #pragma mark - Navigation 29 | 30 | // In a storyboard-based application, you will often want to do a little preparation before navigation 31 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 32 | // Get the new view controller using [segue destinationViewController]. 33 | // Pass the selected object to the new view controller. 34 | } 35 | */ 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /XianYu/Classes/Home/Controller/LBHomeViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // LBHomeViewController.h 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LBHomeViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /XianYu/Classes/Home/Controller/LBHomeViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // LBHomeViewController.m 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import "LBHomeViewController.h" 10 | 11 | @interface LBHomeViewController () 12 | 13 | @end 14 | 15 | @implementation LBHomeViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view. 20 | } 21 | 22 | - (void)didReceiveMemoryWarning { 23 | [super didReceiveMemoryWarning]; 24 | // Dispose of any resources that can be recreated. 25 | } 26 | 27 | /* 28 | #pragma mark - Navigation 29 | 30 | // In a storyboard-based application, you will often want to do a little preparation before navigation 31 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 32 | // Get the new view controller using [segue destinationViewController]. 33 | // Pass the selected object to the new view controller. 34 | } 35 | */ 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /XianYu/Classes/Main/Category/UIImage+Image.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+Image.h 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIImage (Image) 12 | 13 | /** 14 | * 根据颜色生成一张图片 15 | * @param imageName 提供的颜色 16 | */ 17 | + (UIImage *)imageWithColor:(UIColor *)color; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /XianYu/Classes/Main/Category/UIImage+Image.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+Image.m 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import "UIImage+Image.h" 10 | 11 | @implementation UIImage (Image) 12 | 13 | + (UIImage *)imageWithColor:(UIColor *)color { 14 | 15 | //描述一个矩形 16 | CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f); 17 | //开启图形上下文 18 | UIGraphicsBeginImageContextWithOptions(rect.size, NO, 0); 19 | 20 | //获得图形上下文 21 | CGContextRef ctx = UIGraphicsGetCurrentContext(); 22 | 23 | //使用color演示填充上下文 24 | CGContextSetFillColorWithColor(ctx, [color CGColor]); 25 | 26 | //渲染上下文 27 | CGContextFillRect(ctx, rect); 28 | 29 | UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); 30 | 31 | //关闭图形上下文 32 | UIGraphicsEndImageContext(); 33 | 34 | return image; 35 | 36 | } 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /XianYu/Classes/Main/Category/UIView+LBExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+LBExtension.h 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | IB_DESIGNABLE 12 | 13 | @interface UIView (LBExtension) 14 | @property (nonatomic, assign)CGFloat x; 15 | @property (nonatomic, assign)CGFloat y; 16 | @property (nonatomic, assign)CGFloat width; 17 | @property (nonatomic, assign)CGFloat height; 18 | @property (nonatomic, assign)CGFloat centerX; 19 | @property (nonatomic, assign)CGFloat centerY; 20 | @property (nonatomic, assign)CGSize size; 21 | @property(nonatomic, assign) IBInspectable CGFloat borderWidth; 22 | @property(nonatomic, assign) IBInspectable UIColor *borderColor; 23 | @property(nonatomic, assign) IBInspectable CGFloat cornerRadius; 24 | 25 | /** 26 | * 水平居中 27 | */ 28 | - (void)alignHorizontal; 29 | /** 30 | * 垂直居中 31 | */ 32 | - (void)alignVertical; 33 | /** 34 | * 判断是否显示在主窗口上面 35 | * 36 | * @return 是否 37 | */ 38 | - (BOOL)isShowOnWindow; 39 | 40 | - (UIViewController *)parentController; 41 | @end 42 | -------------------------------------------------------------------------------- /XianYu/Classes/Main/Category/UIView+LBExtension.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+LBExtension.m 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import "UIView+LBExtension.h" 10 | 11 | @implementation UIView (LBExtension) 12 | 13 | - (void)setX:(CGFloat)x 14 | { 15 | CGRect frame = self.frame; 16 | frame.origin.x = x; 17 | self.frame = frame; 18 | } 19 | 20 | - (CGFloat)x 21 | { 22 | return self.frame.origin.x; 23 | } 24 | 25 | - (void)setY:(CGFloat)y 26 | { 27 | CGRect frame = self.frame; 28 | frame.origin.y = y; 29 | self.frame = frame; 30 | } 31 | 32 | - (CGFloat)y 33 | { 34 | return self.frame.origin.y; 35 | } 36 | 37 | - (void)setWidth:(CGFloat)width 38 | { 39 | CGRect frame = self.frame; 40 | frame.size.width = width; 41 | self.frame = frame; 42 | } 43 | 44 | - (CGFloat)width 45 | { 46 | return self.frame.size.width; 47 | } 48 | 49 | - (void)setHeight:(CGFloat)height 50 | { 51 | CGRect frame = self.frame; 52 | frame.size.height = height; 53 | self.frame= frame; 54 | } 55 | 56 | - (CGFloat)height 57 | { 58 | return self.frame.size.height; 59 | } 60 | 61 | - (void)setSize:(CGSize)size 62 | { 63 | CGRect frame = self.frame; 64 | frame.size = size; 65 | self.frame = frame; 66 | } 67 | 68 | - (CGSize)size 69 | { 70 | return self.frame.size; 71 | } 72 | 73 | - (void)setCenterX:(CGFloat)centerX 74 | { 75 | CGPoint center = self.center; 76 | center.x = centerX; 77 | self.center = center; 78 | } 79 | 80 | - (CGFloat)centerX 81 | { 82 | return self.center.x; 83 | } 84 | 85 | - (void)setCenterY:(CGFloat)centerY 86 | { 87 | CGPoint center = self.center; 88 | center.y = centerY; 89 | self.center = center; 90 | } 91 | 92 | - (CGFloat)centerY 93 | { 94 | return self.center.y; 95 | } 96 | - (void)alignHorizontal 97 | { 98 | self.x = (self.superview.width - self.width) * 0.5; 99 | } 100 | 101 | - (void)alignVertical 102 | { 103 | self.y = (self.superview.height - self.height) *0.5; 104 | } 105 | 106 | - (void)setBorderWidth:(CGFloat)borderWidth 107 | { 108 | 109 | if (borderWidth < 0) { 110 | return; 111 | } 112 | self.layer.borderWidth = borderWidth; 113 | } 114 | 115 | - (void)setBorderColor:(UIColor *)borderColor 116 | { 117 | self.layer.borderColor = borderColor.CGColor; 118 | } 119 | 120 | - (void)setCornerRadius:(CGFloat)cornerRadius 121 | { 122 | self.layer.cornerRadius = cornerRadius; 123 | self.layer.masksToBounds = YES; 124 | } 125 | 126 | - (BOOL)isShowOnWindow 127 | { 128 | //主窗口 129 | UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow; 130 | 131 | //相对于父控件转换之后的rect 132 | CGRect newRect = [keyWindow convertRect:self.frame fromView:self.superview]; 133 | //主窗口的bounds 134 | CGRect winBounds = keyWindow.bounds; 135 | //判断两个坐标系是否有交汇的地方,返回bool值 136 | BOOL isIntersects = CGRectIntersectsRect(newRect, winBounds); 137 | if (self.hidden != YES && self.alpha >0.01 && self.window == keyWindow && isIntersects) { 138 | return YES; 139 | }else{ 140 | return NO; 141 | } 142 | } 143 | 144 | - (CGFloat)borderWidth 145 | { 146 | return self.borderWidth; 147 | } 148 | 149 | - (UIColor *)borderColor 150 | { 151 | return self.borderColor; 152 | 153 | } 154 | 155 | - (CGFloat)cornerRadius 156 | { 157 | return self.cornerRadius; 158 | } 159 | 160 | - (UIViewController *)parentController 161 | { 162 | UIResponder *responder = [self nextResponder]; 163 | while (responder) { 164 | if ([responder isKindOfClass:[UIViewController class]]) { 165 | return (UIViewController *)responder; 166 | } 167 | responder = [responder nextResponder]; 168 | } 169 | return nil; 170 | } 171 | 172 | 173 | @end 174 | -------------------------------------------------------------------------------- /XianYu/Classes/Main/Controller/LBNavigationController.h: -------------------------------------------------------------------------------- 1 | // 2 | // LBNavigationController.h 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LBNavigationController : UINavigationController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /XianYu/Classes/Main/Controller/LBNavigationController.m: -------------------------------------------------------------------------------- 1 | // 2 | // LBNavigationController.m 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import "LBNavigationController.h" 10 | #import "LBTabBarController.h" 11 | #import "UIImage+Image.h" 12 | //黄色导航栏 13 | #define NavBarColor [UIColor colorWithRed:250/255.0 green:227/255.0 blue:111/255.0 alpha:1.0] 14 | @interface LBNavigationController () 15 | 16 | @end 17 | 18 | @implementation LBNavigationController 19 | 20 | + (void)load 21 | { 22 | 23 | 24 | UIBarButtonItem *item=[UIBarButtonItem appearanceWhenContainedIn:self, nil ]; 25 | NSMutableDictionary *dic=[NSMutableDictionary dictionary]; 26 | dic[NSFontAttributeName]=[UIFont systemFontOfSize:15]; 27 | dic[NSForegroundColorAttributeName]=[UIColor blackColor]; 28 | [item setTitleTextAttributes:dic forState:UIControlStateNormal]; 29 | 30 | UINavigationBar *bar = [UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[self]]; 31 | 32 | [bar setBackgroundImage:[UIImage imageWithColor:NavBarColor] forBarMetrics:UIBarMetricsDefault]; 33 | NSMutableDictionary *dicBar=[NSMutableDictionary dictionary]; 34 | 35 | dicBar[NSFontAttributeName]=[UIFont systemFontOfSize:15]; 36 | [bar setTitleTextAttributes:dic]; 37 | 38 | } 39 | 40 | - (void)viewDidLoad { 41 | [super viewDidLoad]; 42 | 43 | } 44 | 45 | - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated 46 | { 47 | 48 | if (self.viewControllers.count > 0) { 49 | 50 | viewController.hidesBottomBarWhenPushed = YES; 51 | 52 | 53 | 54 | 55 | 56 | } 57 | 58 | return [super pushViewController:viewController animated:animated]; 59 | } 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | @end 70 | -------------------------------------------------------------------------------- /XianYu/Classes/Main/Controller/LBTabBarController.h: -------------------------------------------------------------------------------- 1 | // 2 | // LBTabBarController.h 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LBTabBarController : UITabBarController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /XianYu/Classes/Main/Controller/LBTabBarController.m: -------------------------------------------------------------------------------- 1 | // 2 | // LBTabBarController.m 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import "LBTabBarController.h" 10 | #import "LBNavigationController.h" 11 | 12 | #import "LBFishViewController.h" 13 | #import "LBHomeViewController.h" 14 | #import "LBMineViewController.h" 15 | #import "LBpostViewController.h" 16 | #import "LBMessageViewController.h" 17 | 18 | #import "LBTabBar.h" 19 | #import "UIImage+Image.h" 20 | 21 | 22 | @interface LBTabBarController () 23 | 24 | @end 25 | 26 | @implementation LBTabBarController 27 | 28 | #pragma mark - 第一次使用当前类的时候对设置UITabBarItem的主题 29 | + (void)initialize 30 | { 31 | UITabBarItem *tabBarItem = [UITabBarItem appearanceWhenContainedInInstancesOfClasses:@[self]]; 32 | 33 | NSMutableDictionary *dictNormal = [NSMutableDictionary dictionary]; 34 | dictNormal[NSForegroundColorAttributeName] = [UIColor grayColor]; 35 | dictNormal[NSFontAttributeName] = [UIFont systemFontOfSize:11]; 36 | 37 | NSMutableDictionary *dictSelected = [NSMutableDictionary dictionary]; 38 | dictSelected[NSForegroundColorAttributeName] = [UIColor darkGrayColor]; 39 | dictSelected[NSFontAttributeName] = [UIFont systemFontOfSize:11]; 40 | 41 | [tabBarItem setTitleTextAttributes:dictNormal forState:UIControlStateNormal]; 42 | [tabBarItem setTitleTextAttributes:dictSelected forState:UIControlStateSelected]; 43 | 44 | } 45 | 46 | - (void)viewDidLoad { 47 | [super viewDidLoad]; 48 | 49 | [self setUpAllChildVc]; 50 | 51 | //创建自己的tabbar,然后用kvc将自己的tabbar和系统的tabBar替换下 52 | LBTabBar *tabbar = [[LBTabBar alloc] init]; 53 | tabbar.myDelegate = self; 54 | //kvc实质是修改了系统的_tabBar 55 | [self setValue:tabbar forKeyPath:@"tabBar"]; 56 | 57 | 58 | } 59 | 60 | 61 | #pragma mark - ------------------------------------------------------------------ 62 | #pragma mark - 初始化tabBar上除了中间按钮之外所有的按钮 63 | 64 | - (void)setUpAllChildVc 65 | { 66 | 67 | 68 | LBHomeViewController *HomeVC = [[LBHomeViewController alloc] init]; 69 | [self setUpOneChildVcWithVc:HomeVC Image:@"home_normal" selectedImage:@"home_highlight" title:@"首页"]; 70 | 71 | LBFishViewController *FishVC = [[LBFishViewController alloc] init]; 72 | [self setUpOneChildVcWithVc:FishVC Image:@"fish_normal" selectedImage:@"fish_highlight" title:@"鱼塘"]; 73 | 74 | LBMessageViewController *MessageVC = [[LBMessageViewController alloc] init]; 75 | [self setUpOneChildVcWithVc:MessageVC Image:@"message_normal" selectedImage:@"message_highlight" title:@"消息"]; 76 | 77 | LBMineViewController *MineVC = [[LBMineViewController alloc] init]; 78 | [self setUpOneChildVcWithVc:MineVC Image:@"account_normal" selectedImage:@"account_highlight" title:@"我的"]; 79 | 80 | 81 | } 82 | 83 | #pragma mark - 初始化设置tabBar上面单个按钮的方法 84 | 85 | /** 86 | * @author li bo, 16/05/10 87 | * 88 | * 设置单个tabBarButton 89 | * 90 | * @param Vc 每一个按钮对应的控制器 91 | * @param image 每一个按钮对应的普通状态下图片 92 | * @param selectedImage 每一个按钮对应的选中状态下的图片 93 | * @param title 每一个按钮对应的标题 94 | */ 95 | - (void)setUpOneChildVcWithVc:(UIViewController *)Vc Image:(NSString *)image selectedImage:(NSString *)selectedImage title:(NSString *)title 96 | { 97 | LBNavigationController *nav = [[LBNavigationController alloc] initWithRootViewController:Vc]; 98 | 99 | 100 | Vc.view.backgroundColor = [self randomColor]; 101 | 102 | UIImage *myImage = [UIImage imageNamed:image]; 103 | myImage = [myImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 104 | 105 | //tabBarItem,是系统提供模型,专门负责tabbar上按钮的文字以及图片展示 106 | Vc.tabBarItem.image = myImage; 107 | 108 | UIImage *mySelectedImage = [UIImage imageNamed:selectedImage]; 109 | mySelectedImage = [mySelectedImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 110 | 111 | Vc.tabBarItem.selectedImage = mySelectedImage; 112 | 113 | Vc.tabBarItem.title = title; 114 | 115 | Vc.navigationItem.title = title; 116 | 117 | [self addChildViewController:nav]; 118 | 119 | } 120 | 121 | 122 | 123 | #pragma mark - ------------------------------------------------------------------ 124 | #pragma mark - LBTabBarDelegate 125 | //点击中间按钮的代理方法 126 | - (void)tabBarPlusBtnClick:(LBTabBar *)tabBar 127 | { 128 | 129 | 130 | LBpostViewController *plusVC = [[LBpostViewController alloc] init]; 131 | plusVC.view.backgroundColor = [self randomColor]; 132 | 133 | LBNavigationController *navVc = [[LBNavigationController alloc] initWithRootViewController:plusVC]; 134 | 135 | [self presentViewController:navVc animated:YES completion:nil]; 136 | 137 | 138 | 139 | } 140 | 141 | 142 | - (UIColor *)randomColor 143 | { 144 | CGFloat r = arc4random_uniform(256); 145 | CGFloat g = arc4random_uniform(256); 146 | CGFloat b = arc4random_uniform(256); 147 | return [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1.0]; 148 | 149 | } 150 | 151 | @end 152 | -------------------------------------------------------------------------------- /XianYu/Classes/Main/View/LBTabBar.h: -------------------------------------------------------------------------------- 1 | // 2 | // LBTabBar.h 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class LBTabBar; 12 | 13 | @protocol LBTabBarDelegate 14 | @optional 15 | - (void)tabBarPlusBtnClick:(LBTabBar *)tabBar; 16 | @end 17 | 18 | 19 | @interface LBTabBar : UITabBar 20 | 21 | /** tabbar的代理 */ 22 | @property (nonatomic, weak) id myDelegate ; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /XianYu/Classes/Main/View/LBTabBar.m: -------------------------------------------------------------------------------- 1 | // 2 | // LBTabBar.m 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import "LBTabBar.h" 10 | #import 11 | #import "UIImage+Image.h" 12 | #import "UIView+LBExtension.h" 13 | 14 | #define LBMagin 10 15 | @interface LBTabBar () 16 | 17 | /** plus按钮 */ 18 | @property (nonatomic, weak) UIButton *plusBtn ; 19 | 20 | @end 21 | 22 | @implementation LBTabBar 23 | 24 | - (instancetype)initWithFrame:(CGRect)frame 25 | { 26 | if (self=[super initWithFrame:frame]) { 27 | // ----runtime - test---- 28 | 29 | // unsigned int count = 0; 30 | // Ivar *ivarList = class_copyIvarList([UITabBar class], &count); 31 | // for (int i =0; i 10 | 11 | @interface LBMessageViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /XianYu/Classes/Message/Controller/LBMessageViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // LBMessageViewController.m 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import "LBMessageViewController.h" 10 | 11 | @interface LBMessageViewController () 12 | 13 | @end 14 | 15 | @implementation LBMessageViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view. 20 | } 21 | 22 | - (void)didReceiveMemoryWarning { 23 | [super didReceiveMemoryWarning]; 24 | // Dispose of any resources that can be recreated. 25 | } 26 | 27 | /* 28 | #pragma mark - Navigation 29 | 30 | // In a storyboard-based application, you will often want to do a little preparation before navigation 31 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 32 | // Get the new view controller using [segue destinationViewController]. 33 | // Pass the selected object to the new view controller. 34 | } 35 | */ 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /XianYu/Classes/Mine/Controller/LBMineViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // LBMineViewController.h 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LBMineViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /XianYu/Classes/Mine/Controller/LBMineViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // LBMineViewController.m 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import "LBMineViewController.h" 10 | 11 | @interface LBMineViewController () 12 | 13 | @end 14 | 15 | @implementation LBMineViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view. 20 | } 21 | 22 | - (void)didReceiveMemoryWarning { 23 | [super didReceiveMemoryWarning]; 24 | // Dispose of any resources that can be recreated. 25 | } 26 | 27 | /* 28 | #pragma mark - Navigation 29 | 30 | // In a storyboard-based application, you will often want to do a little preparation before navigation 31 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 32 | // Get the new view controller using [segue destinationViewController]. 33 | // Pass the selected object to the new view controller. 34 | } 35 | */ 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /XianYu/Classes/Other/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /XianYu/Classes/Other/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | #import "LBTabBarController.h" 12 | 13 | #define LBKeyWindow [UIApplication sharedApplication].keyWindow 14 | @interface AppDelegate () 15 | 16 | @end 17 | 18 | @implementation AppDelegate 19 | 20 | 21 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 22 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 23 | 24 | 25 | LBTabBarController *tabBarVc = [[LBTabBarController alloc] init]; 26 | 27 | 28 | CATransition *anim = [[CATransition alloc] init]; 29 | anim.type = @"rippleEffect"; 30 | anim.duration = 1.0; 31 | 32 | 33 | [self.window.layer addAnimation:anim forKey:nil]; 34 | 35 | 36 | self.window.rootViewController = tabBarVc; 37 | 38 | 39 | 40 | 41 | [self.window makeKeyAndVisible]; 42 | 43 | return YES; 44 | } 45 | 46 | - (void)applicationWillResignActive:(UIApplication *)application { 47 | // 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. 48 | // 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. 49 | } 50 | 51 | - (void)applicationDidEnterBackground:(UIApplication *)application { 52 | // 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. 53 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 54 | } 55 | 56 | - (void)applicationWillEnterForeground:(UIApplication *)application { 57 | // 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. 58 | } 59 | 60 | - (void)applicationDidBecomeActive:(UIApplication *)application { 61 | // 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. 62 | } 63 | 64 | - (void)applicationWillTerminate:(UIApplication *)application { 65 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 66 | } 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /XianYu/Classes/Other/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /XianYu/Classes/Post/Controller/LBpostViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // LBpostViewController.h 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface LBpostViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /XianYu/Classes/Post/Controller/LBpostViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // LBpostViewController.m 3 | // XianYu 4 | // 5 | // Created by li bo on 16/5/28. 6 | // Copyright © 2016年 li bo. All rights reserved. 7 | // 8 | 9 | #import "LBpostViewController.h" 10 | 11 | @interface LBpostViewController () 12 | 13 | @end 14 | 15 | @implementation LBpostViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | [self setUpNav]; 20 | } 21 | 22 | - (void)setUpNav 23 | { 24 | 25 | UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"header_back_icon"] style:UIBarButtonItemStyleDone target:self action:@selector(pop)]; 26 | self.navigationItem.leftBarButtonItem = backItem; 27 | 28 | } 29 | 30 | 31 | - (void)pop 32 | { 33 | [self dismissViewControllerAnimated:YES completion:nil]; 34 | 35 | } 36 | 37 | /* 38 | #pragma mark - Navigation 39 | 40 | // In a storyboard-based application, you will often want to do a little preparation before navigation 41 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 42 | // Get the new view controller using [segue destinationViewController]. 43 | // Pass the selected object to the new view controller. 44 | } 45 | */ 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /XianYu/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | 闲鱼 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UIRequiredDeviceCapabilities 26 | 27 | armv7 28 | 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | 36 | 37 | --------------------------------------------------------------------------------