Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-iOS
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
张杰
Opple-iOS
Commits
a260b730
Commit
a260b730
authored
Jun 06, 2016
by
mei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
键盘搜索
parent
29f493ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
11 deletions
+26
-11
ProductLibraryView.h
Lighting/Class/ProductLibraryView.h
+1
-1
ProductLibraryView.m
Lighting/Class/ProductLibraryView.m
+15
-0
project.pbxproj
Lighting/Lighting.xcodeproj/project.pbxproj
+10
-10
No files found.
Lighting/Class/ProductLibraryView.h
View file @
a260b730
...
...
@@ -19,7 +19,7 @@
@end
@interface
ProductLibraryView
:
BaseViewController
<
UIGestureRecognizerDelegate
,
UITableViewDelegate
,
UITableViewDataSource
,
UITableViewDataSource
,
UICollectionViewDataSource
,
UICollectionViewDelegate
,
UICollectionViewDelegateFlowLayout
>
UICollectionViewDelegate
,
UICollectionViewDelegateFlowLayout
,
UITextFieldDelegate
>
@property
(
nonatomic
,
strong
)
id
<
AddProductPicturedelegate
>
delegate
;
@property
(
nonatomic
,
strong
)
UIView
*
subView
;
@property
(
nonatomic
,
strong
)
UIView
*
headerView
;
...
...
Lighting/Class/ProductLibraryView.m
View file @
a260b730
...
...
@@ -329,6 +329,7 @@
self
.
searchTextField
.
placeholder
=
@" 请输入产品关键字"
;
self
.
searchTextField
.
font
=
[
UIFont
systemFontOfSize
:
12
];
self
.
searchTextField
.
returnKeyType
=
UIReturnKeySearch
;
self
.
searchTextField
.
delegate
=
self
;
[
backView
addSubview
:
self
.
searchTextField
];
//
...
...
@@ -630,6 +631,20 @@
}
}
#pragma mark -Return键检测
-
(
BOOL
)
textFieldShouldReturn
:
(
UITextField
*
)
textField
{
[
textField
resignFirstResponder
];
if
(
self
.
searchTextField
.
text
==
nil
||
[
self
.
searchTextField
.
text
isEqualToString
:
@""
])
{
[
self
SHOWPrompttext
:
@"请先输入搜索关键字"
];
}
else
{
self
.
condtionModel
.
nameLike
=
self
.
searchTextField
.
text
;
[
self
.
collectionView
.
mj_header
beginRefreshing
];
}
return
YES
;
}
-
(
void
)
DismissScreenView
:
(
UITapGestureRecognizer
*
)
sender
{
CGPoint
point
=
[
sender
locationInView
:
self
.
view
];
...
...
Lighting/Lighting.xcodeproj/project.pbxproj
View file @
a260b730
...
...
@@ -1861,15 +1861,15 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
"Brand Assets"
;
CLANG_ENABLE_OBJC_WEAK
=
YES
;
CODE_SIGN_IDENTITY
=
"iPhone D
eveloper: 云霄 曹 (WM8ZU7YY98)
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
eveloper: 云霄 曹 (WM8ZU7YY98)
"
;
CODE_SIGN_IDENTITY
=
"iPhone D
istribution: Taiping E-Commerce Co., Ltd
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
istribution: Taiping E-Commerce Co., Ltd
"
;
COMPRESS_PNG_FILES
=
NO
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
"$(inherited)"
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Tools/PrefixHeader.pch"
;
INFOPLIST_FILE
=
Lighting/Info.plist
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.
3
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.
0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LIBRARY_SEARCH_PATHS
=
"$(inherited)"
;
ONLY_ACTIVE_ARCH
=
YES
;
...
...
@@ -1902,9 +1902,9 @@
"\"UIKit\""
,
"$(inherited)"
,
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.
gomore.opple
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
cntaiping.life.TPLAppResuIPad
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"
e9bd3600-5e9c-4cd0-a0d5-b7d8b0882ca8
"
;
PROVISIONING_PROFILE
=
"
3673c575-9d7a-473e-895c-f080dcdf5802
"
;
STRIP_PNG_TEXT
=
NO
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
};
...
...
@@ -1917,15 +1917,15 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
=
"Brand Assets"
;
CLANG_ENABLE_OBJC_WEAK
=
YES
;
CODE_SIGN_IDENTITY
=
"iPhone D
eveloper: 云霄 曹 (WM8ZU7YY98)
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
eveloper: 云霄 曹 (WM8ZU7YY98)
"
;
CODE_SIGN_IDENTITY
=
"iPhone D
istribution: Taiping E-Commerce Co., Ltd
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
istribution: Taiping E-Commerce Co., Ltd
"
;
COMPRESS_PNG_FILES
=
NO
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
"$(inherited)"
;
GCC_PRECOMPILE_PREFIX_HEADER
=
YES
;
GCC_PREFIX_HEADER
=
"$(SRCROOT)/Tools/PrefixHeader.pch"
;
INFOPLIST_FILE
=
Lighting/Info.plist
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.
3
;
IPHONEOS_DEPLOYMENT_TARGET
=
9.
0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LIBRARY_SEARCH_PATHS
=
"$(inherited)"
;
ONLY_ACTIVE_ARCH
=
NO
;
...
...
@@ -1958,9 +1958,9 @@
"\"UIKit\""
,
"$(inherited)"
,
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.
gomore.opple
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.
cntaiping.life.TPLAppResuIPad
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"
e9bd3600-5e9c-4cd0-a0d5-b7d8b0882ca8
"
;
PROVISIONING_PROFILE
=
"
3673c575-9d7a-473e-895c-f080dcdf5802
"
;
STRIP_PNG_TEXT
=
NO
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
};
...
...
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