Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ios1x
Overview
Overview
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
cemarose
ios1x
Commits
e2d8f84b
Commit
e2d8f84b
authored
Jul 18, 2017
by
lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search exclude bonpoint|edit address can input space
parent
52e68ef5
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
10 deletions
+56
-10
project.pbxproj
iCemarose.xcodeproj/project.pbxproj
+6
-0
NSString+Format.h
iCemarose/Class/Classify/NSString+Format.h
+15
-0
NSString+Format.m
iCemarose/Class/Classify/NSString+Format.m
+17
-0
KWMSearchFeedbackVC.m
iCemarose/Class/UI/Product/KWMSearchFeedbackVC.m
+6
-0
KWMEditAddressVC.m
iCemarose/Class/UI/ShopCart/KWMEditAddressVC.m
+11
-10
Header-Prefix.h
iCemarose/Header-Prefix.h
+1
-0
No files found.
iCemarose.xcodeproj/project.pbxproj
View file @
e2d8f84b
...
...
@@ -353,6 +353,7 @@
DA4E36981F17729C0007E4D0
/* KWMCategoryModel.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
DA4E36971F17729C0007E4D0
/* KWMCategoryModel.m */
;
};
DA4E369E1F188B400007E4D0
/* BUYClient+FilterSoldout.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
DA4E369D1F188B400007E4D0
/* BUYClient+FilterSoldout.m */
;
};
DA4E36A11F18A6CB0007E4D0
/* KWMPageResult.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
DA4E36A01F18A6CB0007E4D0
/* KWMPageResult.m */
;
};
DA7DF8E51F1DB01600D5239B
/* NSString+Format.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
DA7DF8E41F1DB01600D5239B
/* NSString+Format.m */
;
};
DAB6431A1F04CFE5002CD7FE
/* AppDelegate+Deeplink.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
DAB643191F04CFE5002CD7FE
/* AppDelegate+Deeplink.m */
;
};
/* End PBXBuildFile section */
...
...
@@ -982,6 +983,8 @@
DA4E369D1F188B400007E4D0
/* BUYClient+FilterSoldout.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"BUYClient+FilterSoldout.m"
;
sourceTree
=
"<group>"
;
};
DA4E369F1F18A6CB0007E4D0
/* KWMPageResult.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
KWMPageResult.h
;
sourceTree
=
"<group>"
;
};
DA4E36A01F18A6CB0007E4D0
/* KWMPageResult.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
KWMPageResult.m
;
sourceTree
=
"<group>"
;
};
DA7DF8E31F1DB01600D5239B
/* NSString+Format.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"NSString+Format.h"
;
sourceTree
=
"<group>"
;
};
DA7DF8E41F1DB01600D5239B
/* NSString+Format.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"NSString+Format.m"
;
sourceTree
=
"<group>"
;
};
DAB643181F04CFE5002CD7FE
/* AppDelegate+Deeplink.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"AppDelegate+Deeplink.h"
;
sourceTree
=
"<group>"
;
};
DAB643191F04CFE5002CD7FE
/* AppDelegate+Deeplink.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
"AppDelegate+Deeplink.m"
;
sourceTree
=
"<group>"
;
};
/* End PBXFileReference section */
...
...
@@ -1080,6 +1083,8 @@
DA4E36941F1726B80007E4D0
/* UIViewController+HTTP.m */
,
DA4E369C1F188B400007E4D0
/* BUYClient+FilterSoldout.h */
,
DA4E369D1F188B400007E4D0
/* BUYClient+FilterSoldout.m */
,
DA7DF8E31F1DB01600D5239B
/* NSString+Format.h */
,
DA7DF8E41F1DB01600D5239B
/* NSString+Format.m */
,
);
path
=
Classify
;
sourceTree
=
"<group>"
;
...
...
@@ -2610,6 +2615,7 @@
C0A6B3C41F01FC5300D85673
/* KWMSecondDetailView.m in Sources */
,
DA4E36A11F18A6CB0007E4D0
/* KWMPageResult.m in Sources */
,
9B8298E61EF237FC00743438
/* NSDecimalNumber+Currency.m in Sources */
,
DA7DF8E51F1DB01600D5239B
/* NSString+Format.m in Sources */
,
C034E6F51D6AF197006EE129
/* KWMPickView.m in Sources */
,
C08870EB1F03481C00C9C1C8
/* KWMCustomsClearance.m in Sources */
,
C034E8651D6B10A0006EE129
/* PhotoImageView.m in Sources */
,
...
...
iCemarose/Class/Classify/NSString+Format.h
0 → 100644
View file @
e2d8f84b
//
// NSString+Format.h
// iCemarose
//
// Created by Sanchew on 2017/7/18.
// Copyright © 2017年 kollway. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface
NSString
(
Format
)
-
(
NSString
*
)
trim
;
@end
iCemarose/Class/Classify/NSString+Format.m
0 → 100644
View file @
e2d8f84b
//
// NSString+Format.m
// iCemarose
//
// Created by Sanchew on 2017/7/18.
// Copyright © 2017年 kollway. All rights reserved.
//
#import "NSString+Format.h"
@implementation
NSString
(
Format
)
-
(
NSString
*
)
trim
{
return
[
self
stringByTrimmingCharactersInSet
:[
NSCharacterSet
whitespaceAndNewlineCharacterSet
]];
}
@end
iCemarose/Class/UI/Product/KWMSearchFeedbackVC.m
View file @
e2d8f84b
...
...
@@ -145,6 +145,7 @@ static NSString *idStr = @"KWMBrandCaramelCell";
[
self
.
dataList
removeAllObjects
];
self
.
searchText
=
text
;
self
.
vBackground
.
hidden
=
YES
;
self
.
currentPage
=
@0
;
[
self
getSearchProduct
];
}
...
...
@@ -188,6 +189,11 @@ static NSString *idStr = @"KWMBrandCaramelCell";
//搜索API
-
(
void
)
getSearchProduct
{
if
([[
_searchText
lowercaseString
]
isEqualToString
:
@"bonpoint"
])
{
self
.
vNoGoods
.
hidden
=
NO
;
return
;
}
if
(
self
.
currentPage
.
integerValue
==
endPage
&&
endPage
!=
0
)
{
[
self
showToast
:
@"已经是最后一页"
];
[
self
hideLoading
];
...
...
iCemarose/Class/UI/ShopCart/KWMEditAddressVC.m
View file @
e2d8f84b
...
...
@@ -145,17 +145,17 @@
}
else
{
requestAddress
=
[[
BUYAddress
alloc
]
initWithModelManager
:
self
.
client
.
modelManager
JSONDictionary
:
nil
];
}
requestAddress
.
lastName
=
self
.
tfName
.
text
;
requestAddress
.
phone
=
self
.
tfPhone
.
text
;
requestAddress
.
province
=
self
.
tfProvince
.
text
;
requestAddress
.
lastName
=
[
self
.
tfName
.
text
trim
]
;
requestAddress
.
phone
=
[
self
.
tfPhone
.
text
trim
]
;
requestAddress
.
province
=
[
self
.
tfProvince
.
text
trim
]
;
requestAddress
.
provinceCode
=
0
;
requestAddress
.
city
=
self
.
tfCity
.
text
;
requestAddress
.
address1
=
self
.
tfAddress
.
text
;
requestAddress
.
address2
=
self
.
tfAddressDetail
.
text
;
requestAddress
.
country
=
self
.
tfCountry
.
text
;
requestAddress
.
city
=
[
self
.
tfCity
.
text
trim
]
;
requestAddress
.
address1
=
[
self
.
tfAddress
.
text
trim
]
;
requestAddress
.
address2
=
[
self
.
tfAddressDetail
.
text
trim
]
;
requestAddress
.
country
=
[
self
.
tfCountry
.
text
trim
]
;
requestAddress
.
countryCode
=
@""
;
requestAddress
.
zip
=
self
.
tfZip
.
text
;
requestAddress
.
firstName
=
requestAddress
.
firstName
?
requestAddress
.
firstName
:
@""
;
requestAddress
.
zip
=
[
self
.
tfZip
.
text
trim
]
;
requestAddress
.
firstName
=
[(
requestAddress
.
firstName
?
requestAddress
.
firstName
:
@""
)
trim
]
;
return
requestAddress
;
}
...
...
@@ -234,7 +234,8 @@
-
(
BOOL
)
textField
:
(
UITextField
*
)
textField
shouldChangeCharactersInRange
:
(
NSRange
)
range
replacementString
:
(
NSString
*
)
string
{
return
!
[
string
isEqualToString
:
@" "
];
// return ![string isEqualToString:@" "];
return
YES
;
}
#pragma mark - UITextFieldDelegate
...
...
iCemarose/Header-Prefix.h
View file @
e2d8f84b
...
...
@@ -14,6 +14,7 @@
#import "UIViewController+HTTP.h"
#import <RXCollections/RXCollection.h>
#import <RegexKitLite/RegexKitLite.h>
#import "NSString+Format.h"
#ifndef Header_Prefix_h
#define Header_Prefix_h
...
...
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