Jelajahi Sumber

修改系统的选择图片导航栏透明的问题

huzhiqiang 3 tahun lalu
induk
melakukan
99ecc3e006
2 mengubah file dengan 61 tambahan dan 21 penghapusan
  1. 60 20
      .gitignore
  2. 1 1
      BFCommonKit/Classes/BFBase/Controller/PQBaseViewController.swift

+ 60 - 20
.gitignore

@@ -1,5 +1,20 @@
-# OS X
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
 .DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+# Xcode
+#
+# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
+
+## Build generated
+build/
+DerivedData/
 
 ## Various settings
 *.pbxuser
@@ -10,31 +25,56 @@
 !default.mode2v3
 *.perspectivev3
 !default.perspectivev3
-
-profile
-
-# Bundler
-.bundle
-
-xcuserdata
+xcuserdata/
 
 ## Other
-*.xcuserstate
-*.xcscmblueprint
-
-## Build generated
-build/
-DerivedData
-
-## Other
-*.xccheckout
 *.moved-aside
-
-#Example/Pods/*
+*.xccheckout
+*.xcscmblueprint
 
 ## Obj-C/Swift specific
 *.hmap
 *.ipa
+*.dSYM.zip
+*.dSYM
+
+## Playgrounds
+timeline.xctimeline
+playground.xcworkspace
+
+# Swift Package Manager
+#
+# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
+# Packages/
+# Package.pins
+# Package.resolved
+.build/
+
+# CocoaPods
+#
+# We recommend against adding the Pods directory to your .gitignore. However
+# you should judge for yourself, the pros and cons are mentioned at:
+# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
+#
+Pods/
+# Podfile.lock
+
+# Carthage
+#
+# Add this line if you want to avoid checking in source code from Carthage dependencies.
+# Carthage/Checkouts
+
+Carthage/Build
 
+# fastlane
+#
+# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
+# screenshots whenever they are needed.
+# For more information about the recommended setup visit:
+# https://docs.fastlane.tools/best-practices/source-control/#source-control
 
-Carthage/Build
+fastlane/report.xml
+fastlane/Preview.html
+fastlane/screenshots/**/*.png
+fastlane/test_output
+PQCreativeCommunity.xcodeproj/xcshareddata/xcschemes

+ 1 - 1
BFCommonKit/Classes/BFBase/Controller/PQBaseViewController.swift

@@ -58,7 +58,7 @@ open class PQBaseViewController: UIViewController, UIGestureRecognizerDelegate {
         lineView = UIView(frame: CGRect(x: 0, y: (navHeadImageView?.frame.maxY ?? cDevice_iPhoneNavBarAndStatusBarHei) - 0.5, width: cScreenWidth, height: 0.5))
         lineView?.backgroundColor = PQBFConfig.shared.styleBackGroundColor
         view.addSubview(lineView!)
-        UINavigationBar.appearance().setBackgroundImage(UIImage(), for: .default)
+//        UINavigationBar.appearance().setBackgroundImage(UIImage(), for: .default)
         automaticallyAdjustsScrollViewInsets = false
         navigationController?.interactivePopGestureRecognizer?.delegate = self
         fd_prefersNavigationBarHidden = true