Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
xffruit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
xffruit
Commits
145bda71
Commit
145bda71
authored
7 years ago
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
迁移到最新的xcode
parent
b92b6842
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
18 deletions
+49
-18
project.pbxproj
XFFruit.xcodeproj/project.pbxproj
+9
-4
Info.plist
XFFruit/Info.plist
+26
-0
IBTRefreshTableView.h
XFFruit/Utilities/IBTRefreshTableView/IBTRefreshTableView.h
+1
-1
IBTRefreshTableView.m
XFFruit/Utilities/IBTRefreshTableView/IBTRefreshTableView.m
+13
-13
No files found.
XFFruit.xcodeproj/project.pbxproj
View file @
145bda71
...
...
@@ -3271,6 +3271,7 @@
C1F696021AB870B400F9F5DD
=
{
CreatedOnToolsVersion
=
6.2
;
DevelopmentTeam
=
W54V2VB863
;
ProvisioningStyle
=
Automatic
;
SystemCapabilities
=
{
com.apple.BackgroundModes
=
{
enabled
=
1
;
...
...
@@ -4436,8 +4437,9 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
"iPhone Developer: jie zhang (9V9955H2BK)"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer
: jie zhang (9V9955H2BK)
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
COPYING_PRESERVES_HFS_DATA
=
NO
;
DEVELOPMENT_TEAM
=
""
;
ENABLE_BITCODE
=
NO
;
GCC_PREFIX_HEADER
=
"XFFruit/XFFruit-Prefix.pch"
;
INFOPLIST_FILE
=
XFFruit/Info.plist
;
...
...
@@ -4450,7 +4452,8 @@
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.xffruit
;
PRODUCT_NAME
=
XFFruit
;
PROVISIONING_PROFILE
=
"e2cec26c-3666-4512-9b9a-cdb4cd9da56d"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
USER_HEADER_SEARCH_PATHS
=
"${SRCROOT}/**"
;
};
name
=
Debug
;
...
...
@@ -4461,8 +4464,9 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
"iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
istribution: Shanghai Gomore Information Technology Co.,Ltd
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
eveloper
"
;
COPYING_PRESERVES_HFS_DATA
=
NO
;
DEVELOPMENT_TEAM
=
""
;
ENABLE_BITCODE
=
NO
;
GCC_PREFIX_HEADER
=
"XFFruit/XFFruit-Prefix.pch"
;
INFOPLIST_FILE
=
XFFruit/Info.plist
;
...
...
@@ -4475,7 +4479,8 @@
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.xffruit
;
PRODUCT_NAME
=
XFFruit
;
PROVISIONING_PROFILE
=
"e2cec26c-3666-4512-9b9a-cdb4cd9da56d"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
USER_HEADER_SEARCH_PATHS
=
"${SRCROOT}/**"
;
};
name
=
Release
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/Info.plist
View file @
145bda71
...
...
@@ -37,6 +37,32 @@
<
a
rr
a
y
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
NSAppleMusicUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问媒体资料库
<
/string
>
<
k
e
y
>
NSBluetoothPeripheralUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问蓝牙
<
/string
>
<
k
e
y
>
NSCalendarsUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问日历
<
/string
>
<
k
e
y
>
NSCameraUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问相机
<
/string
>
<
k
e
y
>
NSHealthShareUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问健康分享
<
/string
>
<
k
e
y
>
NSHealthUpdateUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问健康更新
<
/string
>
<
k
e
y
>
NSLocationAlwaysUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能始终访问位置
<
/string
>
<
k
e
y
>
NSLocationUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问位置
<
/string
>
<
k
e
y
>
NSLocationWhenInUseUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能在使用期间访问位置
<
/string
>
<
k
e
y
>
NSMicrophoneUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问麦克风
<
/string
>
<
k
e
y
>
NSMotionUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问运动与健身
<
/string
>
<
k
e
y
>
NSPhotoLibraryUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问相册
<
/string
>
<
k
e
y
>
NSRemindersUsageDescription
<
/k
e
y
>
<
string
>
App
需要您的同意,才能访问提醒事项
<
/string
>
<
k
e
y
>
UISupportedInterfaceOrientations
~
ipad
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
...
...
This diff is collapsed.
Click to expand it.
XFFruit/Utilities/IBTRefreshTableView/IBTRefreshTableView.h
View file @
145bda71
...
...
@@ -13,7 +13,7 @@
@interface
IBTRefreshTableView
:
IBTTableView
@property
(
assign
,
nonatomic
)
id
<
IBTScrollViewRefreshDelegate
>
refreshDelegate
;
@property
(
strong
,
nonatomic
)
UIRefreshControl
*
refreshC
ontro
l
;
@property
(
strong
,
nonatomic
)
UIRefreshControl
*
refreshC
tr
l
;
@property
(
strong
,
nonatomic
)
IBTScrollLoadMoreView
*
loadMoreView
;
-
(
void
)
scrollToTopAnimated
:(
BOOL
)
animated
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/Utilities/IBTRefreshTableView/IBTRefreshTableView.m
View file @
145bda71
...
...
@@ -56,8 +56,8 @@
[
super
didMoveToWindow
];
if
(
!
self
.
window
)
{
if
(
_refreshC
ontro
l
)
{
[
_refreshC
ontro
l
endRefreshing
];
if
(
_refreshC
tr
l
)
{
[
_refreshC
tr
l
endRefreshing
];
}
if
(
_refreshFooterView
)
{
...
...
@@ -127,25 +127,25 @@
}
-
(
void
)
addRefreshControlWithText
:
(
NSString
*
)
text
{
if
(
!
_refreshC
ontro
l
)
{
self
.
refreshC
ontro
l
=
[[
UIRefreshControl
alloc
]
init
];
[
_refreshC
ontro
l
addTarget
:
self
if
(
!
_refreshC
tr
l
)
{
self
.
refreshC
tr
l
=
[[
UIRefreshControl
alloc
]
init
];
[
_refreshC
tr
l
addTarget
:
self
action
:
@selector
(
handleRefresh
:
)
forControlEvents
:
UIControlEventValueChanged
];
}
if
(
text
.
length
>
0
)
{
_refreshC
ontro
l
.
attributedTitle
=
[[
NSAttributedString
alloc
]
initWithString
:
text
];
_refreshC
tr
l
.
attributedTitle
=
[[
NSAttributedString
alloc
]
initWithString
:
text
];
}
if
(
!
_refreshC
ontro
l
.
superview
)
{
[
self
addSubview
:
_refreshC
ontro
l
];
if
(
!
_refreshC
tr
l
.
superview
)
{
[
self
addSubview
:
_refreshC
tr
l
];
}
}
-
(
void
)
removeRefreshControl
{
if
(
_refreshC
ontrol
&&
_refreshContro
l
.
superview
)
{
[
_refreshC
ontro
l
removeFromSuperview
];
if
(
_refreshC
trl
&&
_refreshCtr
l
.
superview
)
{
[
_refreshC
tr
l
removeFromSuperview
];
}
}
...
...
@@ -182,11 +182,11 @@
// }
//
// if (textStr.length > 0) {
// _refreshC
ontro
l.attributedTitle = [[NSAttributedString alloc] initWithString:textStr];
// _refreshC
tr
l.attributedTitle = [[NSAttributedString alloc] initWithString:textStr];
// }
if
(
_refreshC
ontro
l
.
refreshing
)
{
[
_refreshC
ontro
l
endRefreshing
];
if
(
_refreshC
tr
l
.
refreshing
)
{
[
_refreshC
tr
l
endRefreshing
];
// Fix ContentInset became -60 when UIRefreshController endRefreshing
// http://stackoverflow.com/questions/20101572/ios7-uirefreshcontrol-changes-contentinset
...
...
This diff is collapsed.
Click to expand it.
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