/HGInitiation

๐ŸถQuick start app ๅฟซ้€Ÿๅผ€ๅง‹

Primary LanguageObjective-C

HGInitiation

0. ่ฟ่กŒ

pod install

1. ไปฃ็ ่ง„่Œƒ ใ€ ้€ป่พ‘ๆธ…ๆ™ฐ๏ผŒไปฃ็ ๆ•ดๆด๏ผŒ้›ถ่ญฆๅ‘Š ใ€‘

ๆ€ปๅˆ™


1.Donโ€™t repeat your self.

2.ไปฃ็ ่‡ชๆณจ้‡Š๏ผŒไพ้ ไปฃ็ ๆœฌ่บซๆฅ่กจ่พพไฝ ็š„่ฎพ่ฎกๆ„ๅ›พ๏ผŒไธ่ฆไพ่ต–ๆณจ้‡Šใ€‚

3.ๅ•ไธ€ๆŒ‡่ดฃ๏ผŒๆ— ่ฎบๆ˜ฏ็ฑปใ€ๅ‡ฝๆ•ฐใ€ๆจกๅ—ใ€ๅŒ…ๅฐฝๅฏ่ƒฝไปคๅ…ถๆŒ‡่ดฃ็บฏๅ‡€ไธ”ๅ•ไธ€ใ€‚

4.ๆญป็จ‹ๅบไธ่ฏด่ฐŽ๏ผŒไธ่ฆๅ› ไธบ้˜ฒๆญขCrashๅ†™ๅฅ‡่‘ฉ็š„ไปฃ็ ใ€‚็จ‹ๅบCrashไบ†๏ผŒๅ่€Œๆ›ดๅฎนๆ˜“ๆŸฅๆ‰พ้”™่ฏฏใ€‚

5.ๅ€Ÿ็”จ็พŽๅ›ฝ็ซฅๅญๅ†›ๅ†›่ง„๏ผš่ฎฉ่ฅๅœฐๆฏ”ไฝ ๆฅๆ—ถๆ›ดๅนฒๅ‡€ใ€‚

่ฏฆ็ป†ๅ‚้˜…

StyleGuide

2. ๅทฅ็จ‹็ป“ๆž„ Project Structure


.
โ”œโ”€โ”€ Vendors/                                # Third-party libraries and file
โ”‚   โ”œโ”€โ”€ CNPPopupController/                 # a simple and versatile class for presenting a custom popup in a variety of fashions.
โ”‚   โ”œโ”€โ”€ CHTCollectionViewWaterfallLayout/   # the waterfall layout for UICollectionView.
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ Resources/                              # Main project resources
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ General/                                # General functions    
โ”‚   โ”œโ”€โ”€ Core/                               # some general configuration. eg: theme
โ”‚   โ”œโ”€โ”€ Theme/                              # theme
โ”‚   โ”œโ”€โ”€ Categories/                         # categories
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ Compontents/                        # UI components
โ”‚   โ”‚   โ”œโ”€โ”€ HUD/                            # 
โ”‚   โ”‚   โ”œโ”€โ”€ Popover/                        # 
โ”‚   โ”‚   โ”œโ”€โ”€ PagesScroll/                    # 
โ”‚   โ”‚   โ”œโ”€โ”€ Popup/                          # 
โ”‚   โ”‚   โ”œโ”€โ”€ PageController/                 # 
โ”‚   โ”‚   โ”œโ”€โ”€ ViewUtils/                      # 
โ”‚   โ”‚   โ”œโ”€โ”€ PhotoBrowser/                   # 
โ”‚   โ”‚   โ”œโ”€โ”€ ImagePicker/                    # 
โ”‚   โ”‚   โ”œโ”€โ”€ ScrollView/                     # 
โ”‚   โ”‚   โ”œโ”€โ”€ WebView/                        # 
โ”‚   โ”‚   โ”œโ”€โ”€ TextField/                      # 
โ”‚   โ”‚   โ”œโ”€โ”€ TextView/                       # 
โ”‚   โ”‚   โ”œโ”€โ”€ Picker/                         # 
โ”‚   โ”‚   โ”œโ”€โ”€ AvatarClipper/                  # 
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ””โ”€โ”€ Base/                               # Base class
โ”‚   โ”‚   โ”œโ”€โ”€ HGBASEViewController                     
โ”‚   โ”‚   โ”œโ”€โ”€ HGBASETabBarController                        
โ”‚   โ”‚   โ”œโ”€โ”€ HGBASENavigationController                
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ Helpers/
โ”‚   โ”œโ”€โ”€ HGHelperFPS                     
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ Macro/
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ Network/                                # Network
โ”‚   โ”œโ”€โ”€ service/                            
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ””โ”€โ”€ HGHTTPClient                        # client
โ”œโ”€โ”€ Sections/                               # Project Sections
โ”‚   โ””โ”€โ”€ Login/                              # login
โ”‚   โ”‚   โ”œโ”€โ”€ HGLoginController.swift         
โ”‚   โ”‚   โ””โ”€โ”€ HGRegisterController.swift      
โ”‚   โ””โ”€โ”€ Settings/                           # Settings
โ”‚   โ”‚   โ”œโ”€โ”€ HGSettingsController           
โ”‚   โ”‚   โ””โ”€โ”€ ...            
โ”œโ”€โ”€ AppDelegate                             
โ”œโ”€โ”€ Main.storyboard                         # not use
โ”œโ”€โ”€ Login.storyboard                         
โ”œโ”€โ”€ LaunchScreen.storyboard                  
โ”œโ”€โ”€ Assets.xcassets                         
โ”œโ”€โ”€ Info.plist                              
โ”œโ”€โ”€ PrefixHeader.pch                        # app global pch file
โ”œโ”€โ”€ main.m                                  
โ””โ”€โ”€ HGInitiation-Bridging-Header.h          # swift bridging header


3. System colors

SystemColors