Skip to content

Commit

Permalink
对iPad做了一些适配
Browse files Browse the repository at this point in the history
  • Loading branch information
acincor committed Apr 14, 2024
1 parent 3906e83 commit 1965078
Show file tree
Hide file tree
Showing 20 changed files with 85 additions and 98 deletions.
10 changes: 2 additions & 8 deletions MHC博客.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
04BAB8B22BC0FDC8007DBA7C /* SRTHaishinKit in Frameworks */ = {isa = PBXBuildFile; productRef = 04BAB8B12BC0FDC8007DBA7C /* SRTHaishinKit */; };
2E03D3BA29DD30B300C46867 /* ImageIO.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2E03D3B929DD30B300C46867 /* ImageIO.framework */; };
2E03D3C129DD311F00C46867 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 2E887F8A29CE8F5C007CA93B /* libsqlite3.tbd */; };
2E0FD9972A8864060001C401 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2E0FD9962A8864060001C401 /* Launch Screen.storyboard */; };
2E2AAA532A71EE2D0023417C /* WebSocketViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E2AAA522A71EE2D0023417C /* WebSocketViewController.swift */; };
2E2AAA832A72A6690023417C /* MessageModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E2AAA822A72A6690023417C /* MessageModel.swift */; };
2E2AAA852A72A7170023417C /* ChatDataSourch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E2AAA842A72A7170023417C /* ChatDataSourch.swift */; };
Expand Down Expand Up @@ -269,7 +268,6 @@
2E03D3B629DD2F1F00C46867 /* bridge.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = bridge.h; sourceTree = "<group>"; };
2E03D3B929DD30B300C46867 /* ImageIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ImageIO.framework; path = System/Library/Frameworks/ImageIO.framework; sourceTree = SDKROOT; };
2E03D41429DD324D00C46867 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
2E0FD9962A8864060001C401 /* Launch Screen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = "<group>"; };
2E2AAA522A71EE2D0023417C /* WebSocketViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebSocketViewController.swift; sourceTree = "<group>"; };
2E2AAA822A72A6690023417C /* MessageModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageModel.swift; sourceTree = "<group>"; };
2E2AAA842A72A7170023417C /* ChatDataSourch.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatDataSourch.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -757,7 +755,6 @@
2E738A9D29AA38510014FA12 /* Info.plist */,
2E03D3B629DD2F1F00C46867 /* bridge.h */,
2EAA992B2A6D48C70058481E /* 用户协议.txt */,
2E0FD9962A8864060001C401 /* Launch Screen.storyboard */,
);
path = "MHC博客";
sourceTree = "<group>";
Expand Down Expand Up @@ -1352,7 +1349,6 @@
2E704C0B29FA2977003FE541 /* README.md in Resources */,
2EA71C3329BDB779004742CA /* WBRefreshView.xib in Resources */,
2E738AD129AA38510014FA12 /* Assets.xcassets in Resources */,
2E0FD9972A8864060001C401 /* Launch Screen.storyboard in Resources */,
2E66A4FE2A376116009C8207 /* db.sql in Resources */,
2E738AB229AA38510014FA12 /* Emoticons.bundle in Resources */,
2EDC44D82A7F2FFB003D7E63 /* readme.md in Resources */,
Expand Down Expand Up @@ -1748,9 +1744,8 @@
INFOPLIST_KEY_NSMicrophoneUsageDescription = "MHC博客想使用您的Microphone";
INFOPLIST_KEY_NSPhotoLibraryAddUsageDescription = "MHC博客想访问你的相册";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UILaunchStoryboardName = "Launch Screen.storyboard";
INFOPLIST_KEY_UIRequiresFullScreen = YES;
INFOPLIST_KEY_UIStatusBarHidden = NO;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait;
INSTALL_PATH = /Application;
Expand Down Expand Up @@ -1808,9 +1803,8 @@
INFOPLIST_KEY_NSMicrophoneUsageDescription = "MHC博客想使用您的Microphone";
INFOPLIST_KEY_NSPhotoLibraryAddUsageDescription = "MHC博客想访问你的相册";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UILaunchStoryboardName = "Launch Screen.storyboard";
INFOPLIST_KEY_UIRequiresFullScreen = YES;
INFOPLIST_KEY_UIStatusBarHidden = NO;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = UIInterfaceOrientationPortrait;
INSTALL_PATH = /Application;
Expand Down
Binary file not shown.
5 changes: 4 additions & 1 deletion MHC博客/Assets.xcassets/MHC.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"images" : [
{
"filename" : "AppIcon1024x1024.png",
"idiom" : "universal",
"scale" : "1x"
},
Expand All @@ -10,12 +9,16 @@
"scale" : "2x"
},
{
"filename" : "AppIcon1024x1024.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions MHC博客/Assets.xcassets/ad_backColor.colorset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.973",
"green" : "0.973",
"red" : "0.973"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.973",
"green" : "0.973",
"red" : "0.973"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
21 changes: 21 additions & 0 deletions MHC博客/Assets.xcassets/launch.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "launch.svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
1 change: 1 addition & 0 deletions MHC博客/Assets.xcassets/launch.imageset/launch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class DiscoverTableViewController: VisitorTableViewController, UISearchResultsUp
override func viewDidLoad() {
super.viewDidLoad()
if !UserAccountViewModel.sharedUserAccount.userLogon {
visitorView?.setupInfo(imageName: "visitordiscover_image_message", title: "登陆后,最新、最热博客尽在掌握,不再会与时事潮流擦肩而过")
visitorView?.setupInfo(imageName: "visitordiscover_image_message", title: "登陆后,能用搜索框搜索出自己想要的全新世界")
return
}
filterContentForSearchText("")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class CommentCommentTableViewController: VisitorTableViewController {
override func viewDidLoad() {
super.viewDidLoad()
if !UserAccountViewModel.sharedUserAccount.userLogon {
visitorView?.setupInfo(imageName: nil, title: "关注一些人,回这里看看有什么惊喜")
visitorView?.setupInfo(imageName: nil, title: "登陆一下,随时随地发现新鲜事")
return
}
navigationItem.rightBarButtonItem = UIBarButtonItem(title: "关闭", style: .plain, target: self, action: #selector(self.close))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class CommentStatusTableViewController: VisitorTableViewController {
override func viewDidLoad() {
super.viewDidLoad()
if !UserAccountViewModel.sharedUserAccount.userLogon {
visitorView?.setupInfo(imageName: nil, title: "关注一些人,回这里看看有什么惊喜")
visitorView?.setupInfo(imageName: nil, title: "登陆一下,随时随地发现新鲜事")
return
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CommentTableViewController: VisitorTableViewController {
refreshControl = WBRefreshControl()
refreshControl?.addTarget(self, action: #selector(loadData), for: .valueChanged)
if !UserAccountViewModel.sharedUserAccount.userLogon {
visitorView?.setupInfo(imageName: nil, title: "关注一些人,回这里看看有什么惊喜")
visitorView?.setupInfo(imageName: nil, title: "登陆一下,随时随地发现新鲜事")
return
}
navigationItem.rightBarButtonItem = UIBarButtonItem(title: "关闭", style: .plain, target: self, action: #selector(self.close))
Expand Down
2 changes: 1 addition & 1 deletion MHC博客/Classes/View/Home/HomeTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class HomeTableViewController: VisitorTableViewController,UICollectionViewDelega
override func viewDidLoad() {
super.viewDidLoad()
if !UserAccountViewModel.sharedUserAccount.userLogon {
visitorView?.setupInfo(imageName: nil, title: "关注一些人,回这里看看有什么惊喜")
visitorView?.setupInfo(imageName: nil, title: "登陆一下,随时随地发现新鲜事")
return
}
prepareTableView()
Expand Down
Loading

0 comments on commit 1965078

Please sign in to comment.