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
Jul 24, 2017
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 @@
...
@@ -3271,6 +3271,7 @@
C1F696021AB870B400F9F5DD
=
{
C1F696021AB870B400F9F5DD
=
{
CreatedOnToolsVersion
=
6.2
;
CreatedOnToolsVersion
=
6.2
;
DevelopmentTeam
=
W54V2VB863
;
DevelopmentTeam
=
W54V2VB863
;
ProvisioningStyle
=
Automatic
;
SystemCapabilities
=
{
SystemCapabilities
=
{
com.apple.BackgroundModes
=
{
com.apple.BackgroundModes
=
{
enabled
=
1
;
enabled
=
1
;
...
@@ -4436,8 +4437,9 @@
...
@@ -4436,8 +4437,9 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
"iPhone Developer: jie zhang (9V9955H2BK)"
;
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
;
COPYING_PRESERVES_HFS_DATA
=
NO
;
DEVELOPMENT_TEAM
=
""
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
GCC_PREFIX_HEADER
=
"XFFruit/XFFruit-Prefix.pch"
;
GCC_PREFIX_HEADER
=
"XFFruit/XFFruit-Prefix.pch"
;
INFOPLIST_FILE
=
XFFruit/Info.plist
;
INFOPLIST_FILE
=
XFFruit/Info.plist
;
...
@@ -4450,7 +4452,8 @@
...
@@ -4450,7 +4452,8 @@
);
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.xffruit
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.xffruit
;
PRODUCT_NAME
=
XFFruit
;
PRODUCT_NAME
=
XFFruit
;
PROVISIONING_PROFILE
=
"e2cec26c-3666-4512-9b9a-cdb4cd9da56d"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
USER_HEADER_SEARCH_PATHS
=
"${SRCROOT}/**"
;
USER_HEADER_SEARCH_PATHS
=
"${SRCROOT}/**"
;
};
};
name
=
Debug
;
name
=
Debug
;
...
@@ -4461,8 +4464,9 @@
...
@@ -4461,8 +4464,9 @@
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
"iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd"
;
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
;
COPYING_PRESERVES_HFS_DATA
=
NO
;
DEVELOPMENT_TEAM
=
""
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
GCC_PREFIX_HEADER
=
"XFFruit/XFFruit-Prefix.pch"
;
GCC_PREFIX_HEADER
=
"XFFruit/XFFruit-Prefix.pch"
;
INFOPLIST_FILE
=
XFFruit/Info.plist
;
INFOPLIST_FILE
=
XFFruit/Info.plist
;
...
@@ -4475,7 +4479,8 @@
...
@@ -4475,7 +4479,8 @@
);
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.xffruit
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomore.xffruit
;
PRODUCT_NAME
=
XFFruit
;
PRODUCT_NAME
=
XFFruit
;
PROVISIONING_PROFILE
=
"e2cec26c-3666-4512-9b9a-cdb4cd9da56d"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
USER_HEADER_SEARCH_PATHS
=
"${SRCROOT}/**"
;
USER_HEADER_SEARCH_PATHS
=
"${SRCROOT}/**"
;
};
};
name
=
Release
;
name
=
Release
;
...
...
XFFruit/Info.plist
View file @
145bda71
...
@@ -37,6 +37,32 @@
...
@@ -37,6 +37,32 @@
<
a
rr
a
y
>
<
a
rr
a
y
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
<
/
a
rr
a
y
>
<
/
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
>
<
k
e
y
>
UISupportedInterfaceOrientations
~
ipad
<
/k
e
y
>
<
a
rr
a
y
>
<
a
rr
a
y
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
...
...
XFFruit/Utilities/IBTRefreshTableView/IBTRefreshTableView.h
View file @
145bda71
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
@interface
IBTRefreshTableView
:
IBTTableView
@interface
IBTRefreshTableView
:
IBTTableView
@property
(
assign
,
nonatomic
)
id
<
IBTScrollViewRefreshDelegate
>
refreshDelegate
;
@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
;
@property
(
strong
,
nonatomic
)
IBTScrollLoadMoreView
*
loadMoreView
;
-
(
void
)
scrollToTopAnimated
:(
BOOL
)
animated
;
-
(
void
)
scrollToTopAnimated
:(
BOOL
)
animated
;
...
...
XFFruit/Utilities/IBTRefreshTableView/IBTRefreshTableView.m
View file @
145bda71
...
@@ -56,8 +56,8 @@
...
@@ -56,8 +56,8 @@
[
super
didMoveToWindow
];
[
super
didMoveToWindow
];
if
(
!
self
.
window
)
{
if
(
!
self
.
window
)
{
if
(
_refreshC
ontro
l
)
{
if
(
_refreshC
tr
l
)
{
[
_refreshC
ontro
l
endRefreshing
];
[
_refreshC
tr
l
endRefreshing
];
}
}
if
(
_refreshFooterView
)
{
if
(
_refreshFooterView
)
{
...
@@ -127,25 +127,25 @@
...
@@ -127,25 +127,25 @@
}
}
-
(
void
)
addRefreshControlWithText
:
(
NSString
*
)
text
{
-
(
void
)
addRefreshControlWithText
:
(
NSString
*
)
text
{
if
(
!
_refreshC
ontro
l
)
{
if
(
!
_refreshC
tr
l
)
{
self
.
refreshC
ontro
l
=
[[
UIRefreshControl
alloc
]
init
];
self
.
refreshC
tr
l
=
[[
UIRefreshControl
alloc
]
init
];
[
_refreshC
ontro
l
addTarget
:
self
[
_refreshC
tr
l
addTarget
:
self
action
:
@selector
(
handleRefresh
:
)
action
:
@selector
(
handleRefresh
:
)
forControlEvents
:
UIControlEventValueChanged
];
forControlEvents
:
UIControlEventValueChanged
];
}
}
if
(
text
.
length
>
0
)
{
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
)
{
if
(
!
_refreshC
tr
l
.
superview
)
{
[
self
addSubview
:
_refreshC
ontro
l
];
[
self
addSubview
:
_refreshC
tr
l
];
}
}
}
}
-
(
void
)
removeRefreshControl
{
-
(
void
)
removeRefreshControl
{
if
(
_refreshC
ontrol
&&
_refreshContro
l
.
superview
)
{
if
(
_refreshC
trl
&&
_refreshCtr
l
.
superview
)
{
[
_refreshC
ontro
l
removeFromSuperview
];
[
_refreshC
tr
l
removeFromSuperview
];
}
}
}
}
...
@@ -182,11 +182,11 @@
...
@@ -182,11 +182,11 @@
// }
// }
//
//
// if (textStr.length > 0) {
// 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
)
{
if
(
_refreshC
tr
l
.
refreshing
)
{
[
_refreshC
ontro
l
endRefreshing
];
[
_refreshC
tr
l
endRefreshing
];
// Fix ContentInset became -60 when UIRefreshController endRefreshing
// Fix ContentInset became -60 when UIRefreshController endRefreshing
// http://stackoverflow.com/questions/20101572/ios7-uirefreshcontrol-changes-contentinset
// http://stackoverflow.com/questions/20101572/ios7-uirefreshcontrol-changes-contentinset
...
...
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