Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pidan
/
FuSiLive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5eca6bfa
authored
Jan 07, 2025
by
ludi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/私讯+座驾体系' of
http://git.yabolive.net:88/pidan/FuSiLive
into feature/私讯+座驾体系
parents
9517dd50
897e0d67
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
42 additions
and
38 deletions
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/BaseVC/FUSBaseViewController.m
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/FUSSelectImageView.m
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/Controller/FUSChatDetailViewController.m
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/View/Cell/CellContentView/image/FUSIMChatImageFillScreenView.m
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/View/ToolViews/FUSIMVoiceButtonView.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/HomePage/View/AlertView/FUSSevenDayCheckinAlertView.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/LinkMicro/Other/FUSAgoraHelper.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/LinkMicro/View/FUSLinkMicroUserListView.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/Push/FUSVideoAuthorizationView.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/FUSImagePicker/Controller/FUSAlbumViewController.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/FUSImagePicker/Controller/FUSPhotoViewController.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/FUSImagePicker/View/FUSHalfScreenPhotoView.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/NewsFeed/Other/FUSNewsFeedNoticeShownHelper.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/NewsFeed/RichEditor/Controller/FUSPublishNewsFeedViewController.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/NewsFeed/RichEditor/Controller/WGBaseRichEditorViewController.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/NewsFeed/Views/FUSNewsFeedReplyInputView.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Setting/Controller/FUSAuthFacePageOneViewController.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Setting/Controller/FUSNoticeSettingViewController.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Setting/Controller/FUSPrivacySettingViewController.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Setting/View/FUSChatSettingOneToOneHeaderView.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/TZImagePickerController/TZImagePickerController.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/TZImagePickerController/TZPhotoPickerController.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Zone/Controller/FUSVoiceSignRecordViewController.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Zone/Controller/FireFlyMyZone/FUSMyZoneViewController.m
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/BaseVC/FUSBaseViewController.m
View file @
5eca6bfa
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
// 设置状态栏为黑
// 设置状态栏为黑
[[
UIApplication
sharedApplication
]
setStatusBarStyle
:
UIStatusBarStyleDarkContent
animated
:
NO
];
[[
UIApplication
sharedApplication
]
setStatusBarStyle
:
UIStatusBarStyleDarkContent
animated
:
NO
];
[
self
setNeedsStatusBarAppearanceUpdate
];
[
self
setNeedsStatusBarAppearanceUpdate
];
[
self
.
navigationController
setNavigationBarHidden
:
self
.
hiddenNavigationBar
animated
:
YES
];
if
(
!
self
.
hiddenNavigationBar
)
{
if
(
!
self
.
hiddenNavigationBar
)
{
...
@@ -94,6 +95,7 @@
...
@@ -94,6 +95,7 @@
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
self
.
navigationController
.
delegate
=
self
;
// Do any additional setup after loading the view.
// Do any additional setup after loading the view.
_navBarColor
=
UIColor
.
fus_navBarColor
;
_navBarColor
=
UIColor
.
fus_navBarColor
;
...
...
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/FUSSelectImageView.m
View file @
5eca6bfa
...
@@ -269,7 +269,7 @@ typedef void(^Block)(BOOL isSuccess, UIImage *image);
...
@@ -269,7 +269,7 @@ typedef void(^Block)(BOOL isSuccess, UIImage *image);
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"请打开权限以使用手机摄像头"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"请打开权限以使用手机摄像头"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
}
}
...
@@ -282,7 +282,7 @@ typedef void(^Block)(BOOL isSuccess, UIImage *image);
...
@@ -282,7 +282,7 @@ typedef void(^Block)(BOOL isSuccess, UIImage *image);
photoAuthor
==
PHAuthorizationStatusDenied
){
photoAuthor
==
PHAuthorizationStatusDenied
){
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"需要獲取所有照片權限,請在「設置」-「螢火蟲直播」-「照片」中選擇「所有照片」"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"需要獲取所有照片權限,請在「設置」-「螢火蟲直播」-「照片」中選擇「所有照片」"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
return
;
return
;
...
...
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/Controller/FUSChatDetailViewController.m
View file @
5eca6bfa
...
@@ -1636,7 +1636,7 @@
...
@@ -1636,7 +1636,7 @@
// 跳转到FuSi设置界面
// 跳转到FuSi设置界面
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
];
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
options
:@{}
completionHandler
:
nil
];
}
}
}
}
}];
}];
...
@@ -1683,7 +1683,7 @@
...
@@ -1683,7 +1683,7 @@
// 跳转到FuSi设置界面
// 跳转到FuSi设置界面
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
];
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
options
:@{}
completionHandler
:
nil
];
}
}
}
}
}];
}];
...
...
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/View/Cell/CellContentView/image/FUSIMChatImageFillScreenView.m
View file @
5eca6bfa
...
@@ -347,7 +347,7 @@
...
@@ -347,7 +347,7 @@
if
(
status
==
PHAuthorizationStatusDenied
)
{
if
(
status
==
PHAuthorizationStatusDenied
)
{
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"请打开权限以访问手机相册"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"请打开权限以访问手机相册"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
}
else
if
(
status
==
PHAuthorizationStatusAuthorized
)
{
}
else
if
(
status
==
PHAuthorizationStatusAuthorized
)
{
...
...
Modules/FUSChatCenterModule/FUSChatCenterModule/Features/InstantMessaging/View/ToolViews/FUSIMVoiceButtonView.m
View file @
5eca6bfa
...
@@ -624,7 +624,7 @@
...
@@ -624,7 +624,7 @@
// 不允许使用麦克风
// 不允许使用麦克风
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"麦克风不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启麦克风权限"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"麦克风不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启麦克风权限"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
}
}
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/HomePage/View/AlertView/FUSSevenDayCheckinAlertView.m
View file @
5eca6bfa
...
@@ -207,7 +207,7 @@
...
@@ -207,7 +207,7 @@
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
pushSettingStr
];
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
pushSettingStr
];
if
(
pushSettingUrl
)
{
if
(
pushSettingUrl
)
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
];
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
options
:@{}
completionHandler
:
nil
];
}
}
}
}
//TODO: 看一下是否需要检测开启通知后自动点击确定,我觉得不需要,因为通知开关会导致app重启,根本无法走到监听哪一步
//TODO: 看一下是否需要检测开启通知后自动点击确定,我觉得不需要,因为通知开关会导致app重启,根本无法走到监听哪一步
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/LinkMicro/Other/FUSAgoraHelper.m
View file @
5eca6bfa
...
@@ -382,7 +382,7 @@ NSString * const kLiveLinkMicRoleDidChanged = @"linkMicRoleChange";
...
@@ -382,7 +382,7 @@ NSString * const kLiveLinkMicRoleDidChanged = @"linkMicRoleChange";
if
(
authStatus
==
AVAuthorizationStatusDenied
||
authStatus
==
AVAuthorizationStatusRestricted
)
{
if
(
authStatus
==
AVAuthorizationStatusDenied
||
authStatus
==
AVAuthorizationStatusRestricted
)
{
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"麦克风不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启麦克风权限"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"麦克风不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启麦克风权限"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/LinkMicro/View/FUSLinkMicroUserListView.m
View file @
5eca6bfa
...
@@ -904,7 +904,7 @@
...
@@ -904,7 +904,7 @@
if
(
authStatus
==
AVAuthorizationStatusDenied
||
authStatus
==
AVAuthorizationStatusRestricted
)
{
if
(
authStatus
==
AVAuthorizationStatusDenied
||
authStatus
==
AVAuthorizationStatusRestricted
)
{
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"麦克风不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启麦克风权限"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"麦克风不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启麦克风权限"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
return
;
return
;
...
@@ -1373,7 +1373,7 @@
...
@@ -1373,7 +1373,7 @@
if
(
authStatus
==
AVAuthorizationStatusDenied
||
authStatus
==
AVAuthorizationStatusRestricted
)
{
if
(
authStatus
==
AVAuthorizationStatusDenied
||
authStatus
==
AVAuthorizationStatusRestricted
)
{
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"麦克风不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启麦克风权限"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"麦克风不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启麦克风权限"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
return
;
return
;
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/Push/FUSVideoAuthorizationView.m
View file @
5eca6bfa
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
// 不允许使用麦克风
// 不允许使用麦克风
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"麦克风不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启麦克风权限"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"麦克风不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启麦克风权限"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
}
}
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"摄像头不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启摄像头权限"
]
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"摄像头不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启摄像头权限"
]
cancelButtonTitle:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
cancelButtonTitle:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
};
};
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/FUSImagePicker/Controller/FUSAlbumViewController.m
View file @
5eca6bfa
...
@@ -223,7 +223,7 @@
...
@@ -223,7 +223,7 @@
}]];
}]];
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:[
NSString
fus_localString
:
@"确定"
]
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:[
NSString
fus_localString
:
@"确定"
]
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}]];
}]];
[
self
presentViewController
:
alertVC
animated
:
YES
completion
:
nil
];
[
self
presentViewController
:
alertVC
animated
:
YES
completion
:
nil
];
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/FUSImagePicker/Controller/FUSPhotoViewController.m
View file @
5eca6bfa
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
-
(
void
)
fus_updatePhotosWithCurrentAlbum
{
-
(
void
)
fus_updatePhotosWithCurrentAlbum
{
NSString
*
title
=
self
.
albumModel
?
self
.
albumModel
.
title
:
[
NSString
fus_localString
:
@"照片"
];;
NSString
*
title
=
self
.
albumModel
.
title
?
self
.
albumModel
.
title
:
[
NSString
fus_localString
:
@"照片"
];;
self
.
photos
=
[
self
.
albumPhotosDict
[
title
]
mutableCopy
];
self
.
photos
=
[
self
.
albumPhotosDict
[
title
]
mutableCopy
];
...
@@ -1072,7 +1072,7 @@
...
@@ -1072,7 +1072,7 @@
UIAlertController
*
alertVC
=
[
UIAlertController
alertControllerWithTitle
:[
NSString
stringWithFormat
:
@"%@%@%@"
,
[
NSString
fus_localString
:
@"请前往 设置->隐私->照片 中允许"
],
bundleName
,
[
NSString
fus_localString
:
@"访问相册"
]]
message
:
@""
preferredStyle
:
UIAlertControllerStyleAlert
];
UIAlertController
*
alertVC
=
[
UIAlertController
alertControllerWithTitle
:[
NSString
stringWithFormat
:
@"%@%@%@"
,
[
NSString
fus_localString
:
@"请前往 设置->隐私->照片 中允许"
],
bundleName
,
[
NSString
fus_localString
:
@"访问相册"
]]
message
:
@""
preferredStyle
:
UIAlertControllerStyleAlert
];
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:[
NSString
fus_localString
:
@"确定"
]
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:[
NSString
fus_localString
:
@"确定"
]
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
if
([
self
.
navigationController
isKindOfClass
:[
FUSImagePickerViewController
class
]])
{
if
([
self
.
navigationController
isKindOfClass
:[
FUSImagePickerViewController
class
]])
{
FUSImagePickerViewController
*
imagePickerVC
=
(
FUSImagePickerViewController
*
)
self
.
navigationController
;
FUSImagePickerViewController
*
imagePickerVC
=
(
FUSImagePickerViewController
*
)
self
.
navigationController
;
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/FUSImagePicker/View/FUSHalfScreenPhotoView.m
View file @
5eca6bfa
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"请打开权限以使用相册"
]
message
:
nil
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"确定"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"请打开权限以使用相册"
]
message
:
nil
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"确定"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]])
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]])
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
return
;
return
;
}
}
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"请打开权限以使用手机摄像头"
]
message
:
nil
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"确定"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"请打开权限以使用手机摄像头"
]
message
:
nil
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"确定"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]])
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]])
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}
}
}];
}];
...
@@ -458,7 +458,7 @@
...
@@ -458,7 +458,7 @@
}]];
}]];
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:[
NSString
fus_localString
:
@"确定"
]
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:[
NSString
fus_localString
:
@"确定"
]
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}]];
}]];
[[
UIViewController
fus_topViewController
]
presentViewController
:
alertVC
animated
:
YES
completion
:
nil
];
[[
UIViewController
fus_topViewController
]
presentViewController
:
alertVC
animated
:
YES
completion
:
nil
];
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/NewsFeed/Other/FUSNewsFeedNoticeShownHelper.m
View file @
5eca6bfa
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
// 跳转到FuSi设置界面
// 跳转到FuSi设置界面
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
];
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
[
pushNoticeView
fus_showViewWithSuperView
:[
UIApplication
sharedApplication
].
keyWindow
];
[
pushNoticeView
fus_showViewWithSuperView
:[
UIApplication
sharedApplication
].
keyWindow
];
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/NewsFeed/RichEditor/Controller/FUSPublishNewsFeedViewController.m
View file @
5eca6bfa
...
@@ -110,6 +110,8 @@ FUSImagePickerViewControllerDelegate>
...
@@ -110,6 +110,8 @@ FUSImagePickerViewControllerDelegate>
-
(
void
)
configNavigation
{
-
(
void
)
configNavigation
{
self
.
hiddenNavigationBar
=
NO
;
UIImageView
*
imageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
35
,
50
)];
UIImageView
*
imageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
35
,
50
)];
imageView
.
image
=
[
UIImage
fus_naviLogoIcon
];
imageView
.
image
=
[
UIImage
fus_naviLogoIcon
];
imageView
.
contentMode
=
UIViewContentModeScaleAspectFit
;
imageView
.
contentMode
=
UIViewContentModeScaleAspectFit
;
...
@@ -471,7 +473,7 @@ FUSImagePickerViewControllerDelegate>
...
@@ -471,7 +473,7 @@ FUSImagePickerViewControllerDelegate>
photoAuthor
==
PHAuthorizationStatusDenied
){
photoAuthor
==
PHAuthorizationStatusDenied
){
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"需要獲取所有照片權限,請在「設置」-「螢火蟲直播」-「照片」中選擇「所有照片」"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"需要獲取所有照片權限,請在「設置」-「螢火蟲直播」-「照片」中選擇「所有照片」"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
return
;
return
;
...
@@ -483,7 +485,7 @@ FUSImagePickerViewControllerDelegate>
...
@@ -483,7 +485,7 @@ FUSImagePickerViewControllerDelegate>
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"请打开权限以访问手机相册"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"请打开权限以访问手机相册"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
return
;;
return
;;
...
@@ -530,7 +532,7 @@ FUSImagePickerViewControllerDelegate>
...
@@ -530,7 +532,7 @@ FUSImagePickerViewControllerDelegate>
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"请打开权限以使用相册"
]
message
:
nil
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"确定"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"请打开权限以使用相册"
]
message
:
nil
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"确定"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]])
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]])
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
return
;
return
;
}
}
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/NewsFeed/RichEditor/Controller/WGBaseRichEditorViewController.m
View file @
5eca6bfa
...
@@ -699,7 +699,7 @@ FUSImagePickerViewControllerDelegate
...
@@ -699,7 +699,7 @@ FUSImagePickerViewControllerDelegate
photoAuthor
==
PHAuthorizationStatusDenied
){
photoAuthor
==
PHAuthorizationStatusDenied
){
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"需要獲取所有照片權限,請在「設置」-「Fusi Club」-「照片」中選擇「所有照片」"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"需要獲取所有照片權限,請在「設置」-「Fusi Club」-「照片」中選擇「所有照片」"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
return
;
return
;
...
@@ -725,7 +725,7 @@ FUSImagePickerViewControllerDelegate
...
@@ -725,7 +725,7 @@ FUSImagePickerViewControllerDelegate
photoAuthor
==
PHAuthorizationStatusDenied
){
photoAuthor
==
PHAuthorizationStatusDenied
){
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"需要獲取所有照片權限,請在「設置」-「螢火蟲直播」-「照片」中選擇「所有照片」"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"需要獲取所有照片權限,請在「設置」-「螢火蟲直播」-「照片」中選擇「所有照片」"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
return
;
return
;
...
@@ -941,7 +941,7 @@ FUSImagePickerViewControllerDelegate
...
@@ -941,7 +941,7 @@ FUSImagePickerViewControllerDelegate
photoAuthor
==
PHAuthorizationStatusDenied
){
photoAuthor
==
PHAuthorizationStatusDenied
){
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"需要獲取所有照片權限,請在「設置」-「螢火蟲直播」-「照片」中選擇「所有照片」"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"需要獲取所有照片權限,請在「設置」-「螢火蟲直播」-「照片」中選擇「所有照片」"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
return
;
return
;
...
@@ -953,7 +953,7 @@ FUSImagePickerViewControllerDelegate
...
@@ -953,7 +953,7 @@ FUSImagePickerViewControllerDelegate
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"请打开权限以访问手机相册"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"请打开权限以访问手机相册"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/NewsFeed/Views/FUSNewsFeedReplyInputView.m
View file @
5eca6bfa
...
@@ -225,7 +225,7 @@
...
@@ -225,7 +225,7 @@
photoAuthor
==
PHAuthorizationStatusDenied
){
photoAuthor
==
PHAuthorizationStatusDenied
){
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"需要獲取所有照片權限,請在「設置」-「螢火蟲直播」-「照片」中選擇「所有照片」"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"需要獲取所有照片權限,請在「設置」-「螢火蟲直播」-「照片」中選擇「所有照片」"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
return
;
return
;
...
@@ -237,7 +237,7 @@
...
@@ -237,7 +237,7 @@
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"请打开权限以访问手机相册"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:
nil
message
:[
NSString
fus_localString
:
@"请打开权限以访问手机相册"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"确定"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Setting/Controller/FUSAuthFacePageOneViewController.m
View file @
5eca6bfa
...
@@ -165,7 +165,7 @@
...
@@ -165,7 +165,7 @@
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"摄像头不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启摄像头权限"
]
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"摄像头不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启摄像头权限"
]
cancelButtonTitle:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
cancelButtonTitle:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
}
}
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Setting/Controller/FUSNoticeSettingViewController.m
View file @
5eca6bfa
...
@@ -432,7 +432,7 @@
...
@@ -432,7 +432,7 @@
-
(
void
)
clickSettingNoticeBtnAction
:
(
UIButton
*
)
button
{
-
(
void
)
clickSettingNoticeBtnAction
:
(
UIButton
*
)
button
{
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
];
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
options
:@{}
completionHandler
:
nil
];
}
}
}
}
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Setting/Controller/FUSPrivacySettingViewController.m
View file @
5eca6bfa
...
@@ -51,10 +51,10 @@
...
@@ -51,10 +51,10 @@
if
(
SYSTEM_VERSION_GREATER_THAN
(
@"8.0"
))
{
if
(
SYSTEM_VERSION_GREATER_THAN
(
@"8.0"
))
{
NSURL
*
url
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
NSURL
*
url
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
url
])
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
url
])
{
[[
UIApplication
sharedApplication
]
openURL
:
url
];
[[
UIApplication
sharedApplication
]
openURL
:
url
options
:@{}
completionHandler
:
nil
];
}
}
}
else
{
}
else
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}
}
}];
}];
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Setting/View/FUSChatSettingOneToOneHeaderView.m
View file @
5eca6bfa
...
@@ -241,7 +241,7 @@
...
@@ -241,7 +241,7 @@
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
];
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
...
@@ -267,7 +267,7 @@
...
@@ -267,7 +267,7 @@
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
];
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/TZImagePickerController/TZImagePickerController.m
View file @
5eca6bfa
...
@@ -651,7 +651,7 @@
...
@@ -651,7 +651,7 @@
}
}
-
(
void
)
settingBtnClick
{
-
(
void
)
settingBtnClick
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
-
(
void
)
pushViewController
:
(
UIViewController
*
)
viewController
animated
:
(
BOOL
)
animated
{
-
(
void
)
pushViewController
:
(
UIViewController
*
)
viewController
animated
:
(
BOOL
)
animated
{
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/TZImagePickerController/TZPhotoPickerController.m
View file @
5eca6bfa
...
@@ -893,7 +893,7 @@ static CGFloat collectionViewMargin = 0;
...
@@ -893,7 +893,7 @@ static CGFloat collectionViewMargin = 0;
UIAlertAction
*
cancelAct
=
[
UIAlertAction
actionWithTitle
:[
NSBundle
tz_localizedStringForKey
:
@"Cancel"
]
style
:
UIAlertActionStyleCancel
handler
:
nil
];
UIAlertAction
*
cancelAct
=
[
UIAlertAction
actionWithTitle
:[
NSBundle
tz_localizedStringForKey
:
@"Cancel"
]
style
:
UIAlertActionStyleCancel
handler
:
nil
];
[
alertController
addAction
:
cancelAct
];
[
alertController
addAction
:
cancelAct
];
UIAlertAction
*
settingAct
=
[
UIAlertAction
actionWithTitle
:[
NSBundle
tz_localizedStringForKey
:
@"Setting"
]
style
:
UIAlertActionStyleDefault
handler
:^
(
UIAlertAction
*
_Nonnull
action
)
{
UIAlertAction
*
settingAct
=
[
UIAlertAction
actionWithTitle
:[
NSBundle
tz_localizedStringForKey
:
@"Setting"
]
style
:
UIAlertActionStyleDefault
handler
:^
(
UIAlertAction
*
_Nonnull
action
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}];
}];
[
alertController
addAction
:
settingAct
];
[
alertController
addAction
:
settingAct
];
[
self
.
navigationController
presentViewController
:
alertController
animated
:
YES
completion
:
nil
];
[
self
.
navigationController
presentViewController
:
alertController
animated
:
YES
completion
:
nil
];
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Zone/Controller/FUSVoiceSignRecordViewController.m
View file @
5eca6bfa
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
// 不允许使用麦克风
// 不允许使用麦克风
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"麦克风不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启麦克风权限"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
[
FUSAlertView
showAlertWithTitle
:[
NSString
fus_localString
:
@"麦克风不可用"
]
message
:[
NSString
fus_localString
:
@"请前往设置开启麦克风权限"
]
cancelButtonTitle
:
[
NSString
fus_localString
:
@"取消"
]
otherButtonTitles
:
@[[
NSString
fus_localString
:
@"设置"
]]
clickBlock
:^
(
NSInteger
buttonIndex
)
{
if
(
buttonIndex
==
1
)
{
if
(
buttonIndex
==
1
)
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]];
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
]
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
}
}
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/Zone/Controller/FireFlyMyZone/FUSMyZoneViewController.m
View file @
5eca6bfa
...
@@ -741,7 +741,7 @@
...
@@ -741,7 +741,7 @@
// 跳转到FuSi设置界面
// 跳转到FuSi设置界面
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
NSURL
*
pushSettingUrl
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
pushSettingUrl
])
{
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
];
[[
UIApplication
sharedApplication
]
openURL
:
pushSettingUrl
options
:@{}
completionHandler
:
nil
];
}
}
}];
}];
[
pushNoticeView
fus_showViewWithSuperView
:[
UIApplication
sharedApplication
].
keyWindow
];
[
pushNoticeView
fus_showViewWithSuperView
:[
UIApplication
sharedApplication
].
keyWindow
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment