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
9c691fb9
Commit
9c691fb9
authored
9 years ago
by
陈俊俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收键盘
parent
b2046e55
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
59 additions
and
8 deletions
+59
-8
project.pbxproj
XFFruit.xcodeproj/project.pbxproj
+10
-6
Contents.json
...s.xcassets/Survey/no_image_default.imageset/Contents.json
+22
-0
no_image_default.png
...ets/Survey/no_image_default.imageset/no_image_default.png
+0
-0
no_image_default@2x.png
.../Survey/no_image_default.imageset/no_image_default@2x.png
+0
-0
IBTUIViewController.m
XFFruit/Utilities/IBTUIKit/IBTUIViewController.m
+23
-0
SurveyResultCell.m
XFFruit/ViewControllers/Survey/Views/SurveyResultCell.m
+2
-2
NewSurveyViewController.m
...wControllers/Survey/controllers/NewSurveyViewController.m
+2
-0
No files found.
XFFruit.xcodeproj/project.pbxproj
View file @
9c691fb9
...
...
@@ -2208,7 +2208,8 @@
CLANG_WARN_OBJC_ROOT_CLASS
=
YES_ERROR
;
CLANG_WARN_UNREACHABLE_CODE
=
YES
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer: Minglong Hu (TR9LJDJBFT)"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer: Minglong Hu (TR9LJDJBFT)"
;
COPY_PHASE_STRIP
=
NO
;
ENABLE_STRICT_OBJC_MSGSEND
=
YES
;
GCC_C_LANGUAGE_STANDARD
=
gnu99
;
...
...
@@ -2228,6 +2229,7 @@
IPHONEOS_DEPLOYMENT_TARGET
=
7.0
;
MTL_ENABLE_DEBUG_INFO
=
YES
;
ONLY_ACTIVE_ARCH
=
YES
;
PROVISIONING_PROFILE
=
"a12432a9-50b3-4cef-bae7-dcb35f965ce4"
;
SDKROOT
=
iphoneos
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
USER_HEADER_SEARCH_PATHS
=
"${SRCROOT}/**"
;
...
...
@@ -2251,7 +2253,8 @@
CLANG_WARN_OBJC_ROOT_CLASS
=
YES_ERROR
;
CLANG_WARN_UNREACHABLE_CODE
=
YES
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer: Minglong Hu (TR9LJDJBFT)"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer: Minglong Hu (TR9LJDJBFT)"
;
COPY_PHASE_STRIP
=
NO
;
ENABLE_NS_ASSERTIONS
=
NO
;
ENABLE_STRICT_OBJC_MSGSEND
=
YES
;
...
...
@@ -2264,6 +2267,7 @@
GCC_WARN_UNUSED_VARIABLE
=
YES
;
IPHONEOS_DEPLOYMENT_TARGET
=
7.0
;
MTL_ENABLE_DEBUG_INFO
=
NO
;
PROVISIONING_PROFILE
=
"a12432a9-50b3-4cef-bae7-dcb35f965ce4"
;
SDKROOT
=
iphoneos
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
USER_HEADER_SEARCH_PATHS
=
"${SRCROOT}/**"
;
...
...
@@ -2287,7 +2291,7 @@
"$(PROJECT_DIR)"
,
);
PRODUCT_NAME
=
XFFruit
;
PROVISIONING_PROFILE
=
"
251ce065-a08f-44fd-bd52-f79372f4e47e
"
;
PROVISIONING_PROFILE
=
"
a12432a9-50b3-4cef-bae7-dcb35f965ce4
"
;
USER_HEADER_SEARCH_PATHS
=
"${SRCROOT}/**"
;
};
name
=
Debug
;
...
...
@@ -2308,7 +2312,7 @@
"$(PROJECT_DIR)"
,
);
PRODUCT_NAME
=
XFFruit
;
PROVISIONING_PROFILE
=
"
251ce065-a08f-44fd-bd52-f79372f4e47e
"
;
PROVISIONING_PROFILE
=
"
a12432a9-50b3-4cef-bae7-dcb35f965ce4
"
;
USER_HEADER_SEARCH_PATHS
=
"${SRCROOT}/**"
;
};
name
=
Release
;
...
...
@@ -2331,7 +2335,7 @@
INFOPLIST_FILE
=
XFFruitTests/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
PRODUCT_NAME
=
XFFruitTests
;
PROVISIONING_PROFILE
=
"
251ce065-a08f-44fd-bd52-f79372f4e47e
"
;
PROVISIONING_PROFILE
=
"
a12432a9-50b3-4cef-bae7-dcb35f965ce4
"
;
TEST_HOST
=
"$(BUILT_PRODUCTS_DIR)/XFFruit.app/XFFruit"
;
USER_HEADER_SEARCH_PATHS
=
"${SRCROOT}/**"
;
};
...
...
@@ -2351,7 +2355,7 @@
INFOPLIST_FILE
=
XFFruitTests/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
PRODUCT_NAME
=
XFFruitTests
;
PROVISIONING_PROFILE
=
"
251ce065-a08f-44fd-bd52-f79372f4e47e
"
;
PROVISIONING_PROFILE
=
"
a12432a9-50b3-4cef-bae7-dcb35f965ce4
"
;
TEST_HOST
=
"$(BUILT_PRODUCTS_DIR)/XFFruit.app/XFFruit"
;
USER_HEADER_SEARCH_PATHS
=
"${SRCROOT}/**"
;
};
...
...
This diff is collapsed.
Click to expand it.
XFFruit/Images.xcassets/Survey/no_image_default.imageset/Contents.json
0 → 100644
View file @
9c691fb9
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
,
"filename"
:
"no_image_default.png"
},
{
"idiom"
:
"universal"
,
"scale"
:
"2x"
,
"filename"
:
"no_image_default@2x.png"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
XFFruit/Images.xcassets/Survey/no_image_default.imageset/no_image_default.png
0 → 100644
View file @
9c691fb9
2.48 KB
This diff is collapsed.
Click to expand it.
XFFruit/Images.xcassets/Survey/no_image_default.imageset/no_image_default@2x.png
0 → 100644
View file @
9c691fb9
5.39 KB
This diff is collapsed.
Click to expand it.
XFFruit/Utilities/IBTUIKit/IBTUIViewController.m
View file @
9c691fb9
...
...
@@ -56,8 +56,31 @@
[
self
removeKeyboardNotification
];
[
super
viewWillDisappear
:
animated
];
[
self
.
view
endEditing
:
YES
];
self
.
navigationItem
.
backBarButtonItem
=
[
self
setBackBarButtonItem
];
}
//设置导航条的返回按钮,在视图控制器即将消失的时候设置
-
(
UIBarButtonItem
*
)
setBackBarButtonItem
{
UIBarButtonItem
*
backButtonItem
=
[[
UIBarButtonItem
alloc
]
init
];
backButtonItem
.
title
=
@""
;
return
backButtonItem
;
}
//收键盘操作
-
(
void
)
keyboardHidden
{
}
//当点击屏幕空白处的时候,收键盘
-
(
void
)
touchesEnded
:
(
NSSet
*
)
touches
withEvent
:
(
UIEvent
*
)
event
{
[
self
keyboardHidden
];
}
//当点击键盘的return键的时候,收键盘
-
(
BOOL
)
textFieldShouldReturn
:
(
UITextField
*
)
textField
{
[
self
keyboardHidden
];
return
YES
;
}
#pragma mark - Public Method
-
(
void
)
safeSetEdgesForExtendedLayout
:
(
UIRectEdge
)
extendedLayout
{
if
([
self
respondsToSelector
:
@selector
(
setEdgesForExtendedLayout
:)])
{
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Survey/Views/SurveyResultCell.m
View file @
9c691fb9
...
...
@@ -67,8 +67,8 @@
}
-
(
void
)
setSurveyResult
:
(
SurveyResult
*
)
surveyResult
{
[
self
.
imageBtn
setBackgroundImage
:[
UIImage
imageNamed
:
@"
SystemImage
"
]
forState
:
UIControlStateNormal
];
self
.
userNameLabel
.
text
=
surveyResult
.
u
serName
;
[
self
.
imageBtn
setBackgroundImage
:[
UIImage
imageNamed
:
@"
no_image_default
"
]
forState
:
UIControlStateNormal
];
self
.
userNameLabel
.
text
=
surveyResult
.
u
nit
;
self
.
placeLabel
.
text
=
surveyResult
.
place
;
self
.
priceLabel
.
text
=
surveyResult
.
price
;
self
.
capacityLabel
.
text
=
surveyResult
.
capacity
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Survey/controllers/NewSurveyViewController.m
View file @
9c691fb9
...
...
@@ -178,6 +178,7 @@ typedef enum : NSUInteger {
_titleField
.
textColor
=
HexColor
(
@"444444"
);
_titleField
.
placeholder
=
@"输入调研标题"
;
_titleField
.
font
=
FontSize
(
15
);
_titleField
.
returnKeyType
=
UIReturnKeyDone
;
_titleField
.
delegate
=
self
;
[
cell
.
contentView
addSubview
:
_titleField
];
...
...
@@ -189,6 +190,7 @@ typedef enum : NSUInteger {
_noteTextView
.
font
=
FontSize
(
15
);
_noteTextView
.
textAlignment
=
NSTextAlignmentRight
;
_noteTextView
.
delegate
=
self
;
_noteTextView
.
returnKeyType
=
UIReturnKeyDone
;
_noteTextView
.
placeholder
=
@"输入备注内容"
;
[
cell
.
contentView
addSubview
:
_noteTextView
];
...
...
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