Commit e33e60a5 authored by 曹云霄's avatar 曹云霄

使用自定义PickerView选择省市区

parent 7e8ff7ba
This diff is collapsed.
......@@ -15,6 +15,15 @@
*/
@property (nonatomic, assign) IBInspectable CGFloat cornerRadius;
/**
边框线颜色
*/
@property (nonatomic, strong) IBInspectable UIColor *lineColor;
/**
边框线宽度
*/
@property (nonatomic, assign) IBInspectable CGFloat lineWidth;
@end
......@@ -22,6 +22,25 @@
return self.layer.cornerRadius;
}
- (void)setLineColor:(UIColor *)lineColor
{
self.layer.borderColor = lineColor.CGColor;
}
- (UIColor *)lineColor
{
return self.lineColor;
}
- (void)setLineWidth:(CGFloat)lineWidth
{
self.layer.borderWidth = lineWidth;
}
- (CGFloat)lineWidth
{
return self.layer.borderWidth;
}
@end
......@@ -7,7 +7,7 @@
//
#import "LocationViewController.h"
#import "MOFSPickerManager.h"
#import "YXPickerManager.h"
@interface LocationViewController ()
......@@ -24,9 +24,9 @@
#pragma mark -选择地址
- (IBAction)chooseLocationButtonClickAction:(UIButton *)sender {
[[MOFSPickerManager shareManger] showMOFSAddressPickerWithTitle:@"选择城市" cancelTitle:@"取消" commitTitle:@"完成" commitBlock:^(NSString *address, NSString *zipcode) {
ToStoreAddress *storeAddress = [Shoppersmanager manager].storeAddress;
NSString *address = [NSString stringWithFormat:@"%@-%@-%@",storeAddress.province,storeAddress.city,storeAddress.country];
[[YXPickerManager shareManager] showAddressPickerView:kMainBlueColor defaultAddress:address commitBlock:^(NSString *address, NSString *zipcode) {
[sender setTitle:address forState:UIControlStateNormal];
} cancelBlock:^{
......
......@@ -339,9 +339,7 @@
if ([[self class] isBlankString:self.identityView.verificationCode.text]) {
[XBLoadingView showHUDViewWithText:@"验证码不能为空"];
return;
} else {
[self.sendTimer invalidate];
self.resetPasswordView = [[[NSBundle mainBundle] loadNibNamed:@"authenticateView" owner:self options:nil]lastObject];
self.resetPasswordView.layer.masksToBounds = YES;
......
......@@ -11,10 +11,6 @@
@interface ClientViewController : BasePullTableViewController
/**
* tableview
*/
@property (weak, nonatomic) IBOutlet UITableView *informationTableview;
/**
* 客户名称
......@@ -46,11 +42,6 @@
*/
@property (weak, nonatomic) IBOutlet UIButton *addpersonInformationButton;
/**
* 更改客户信息
*/
@property (weak, nonatomic) IBOutlet UIButton *changePersonInformationButton;
/**
* 搜索客户信息
*/
......@@ -61,7 +52,10 @@
*/
@property (weak, nonatomic) IBOutlet UIImageView *customerHeader;
/**
邀请人
*/
@property (weak, nonatomic) IBOutlet UIButton *inviterButton;
......
......@@ -7,7 +7,7 @@
//
#import "AddressViewController.h"
#import "MOFSPickerManager.h"
#import "YXPickerManager.h"
@interface AddressViewController ()
......@@ -67,7 +67,9 @@
#pragma mark -城市选择器
- (void)selectedCityButtonClick:(UIButton *)sender
{
[[MOFSPickerManager shareManger] showMOFSAddressPickerWithTitle:@"选择城市" cancelTitle:@"取消" commitTitle:@"完成" commitBlock:^(NSString *address, NSString *zipcode) {
ToStoreAddress *storeAddress = [Shoppersmanager manager].storeAddress;
NSString *address = [NSString stringWithFormat:@"%@-%@-%@",storeAddress.province,storeAddress.city,storeAddress.country];
[[YXPickerManager shareManager] showAddressPickerView:kMainBlueColor defaultAddress:address commitBlock:^(NSString *address, NSString *zipcode) {
[sender setTitle:address forState:UIControlStateNormal];
} cancelBlock:^{
......
......@@ -84,11 +84,13 @@
}
//未读公告
if (i == 3) {
button.instructionsNumber = [Shoppersmanager manager].shoppers.hasNotReadAffiche;
button.badgeCenterOffset = CGPointMake(-15, 5);
[button showBadgeWithStyle:WBadgeStyleNumber value:[Shoppersmanager manager].shoppers.hasNotReadAffiche animationType:WBadgeAnimTypeNone];
}
//未读消息
if (i == 2) {
button.instructionsNumber = [Shoppersmanager manager].shoppers.hasNotReadNotice;
button.badgeCenterOffset = CGPointMake(-15, 5);
[button showBadgeWithStyle:WBadgeStyleNumber value:[Shoppersmanager manager].shoppers.hasNotReadNotice animationType:WBadgeAnimTypeNone];
}
[self.buttonArray addObject:button];
}
......@@ -128,7 +130,8 @@
{
CustomButton *button = (CustomButton *)[self viewWithTag:105];
NSInteger number = [object.object integerValue];
[button showBadgeWithStyle:WBadgeStyleNumber value:number animationType:WBadgeAnimTypeShake];
button.badgeCenterOffset = CGPointMake(-15, 5);
[button showBadgeWithStyle:WBadgeStyleNumber value:number animationType:WBadgeAnimTypeNone];
[Shoppersmanager manager].shoppers.hasNotReadNotice -= number;
}
......@@ -137,9 +140,9 @@
{
CustomButton *button = (CustomButton *)[self viewWithTag:102];
NSInteger number = [object.object integerValue];
NSInteger oldNumber = button.instructionsNumber;
NSInteger oldNumber = [button.badge.text integerValue];
oldNumber -= number;
[button showBadgeWithStyle:WBadgeStyleNumber value:oldNumber animationType:WBadgeAnimTypeScale];
[button showBadgeWithStyle:WBadgeStyleNumber value:oldNumber animationType:WBadgeAnimTypeNone];
[Shoppersmanager manager].shoppers.hasNotReadNotice -= number;
[self setBadge];
}
......@@ -149,9 +152,9 @@
{
CustomButton *button = (CustomButton *)[self viewWithTag:101];
NSInteger number = [object.object integerValue];
NSInteger oldNumber = button.instructionsNumber;
NSInteger oldNumber = [button.badge.text integerValue];
oldNumber -= number;
[button showBadgeWithStyle:WBadgeStyleNumber value:oldNumber animationType:WBadgeAnimTypeScale];
[button showBadgeWithStyle:WBadgeStyleNumber value:oldNumber animationType:WBadgeAnimTypeNone];
[Shoppersmanager manager].shoppers.hasNotReadNotice -= number;
[self setBadge];
}
......
......@@ -165,7 +165,7 @@
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section
{
return CGSizeMake(0, 65);
return CGSizeMake(0, 80);
}
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
......
......@@ -133,7 +133,7 @@
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section
{
return CGSizeMake(0, 65);
return CGSizeMake(0, 80);
}
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
......
......@@ -46,6 +46,16 @@
*/
@property (weak, nonatomic) IBOutlet UILabel *orderTimelabel;
/**
客户姓名
*/
@property (weak, nonatomic) IBOutlet UILabel *customerNameLabel;
/**
订单总额
*/
@property (weak, nonatomic) IBOutlet UILabel *orderTotalPriceLabel;
/**
* 京东E卡订单数据
*/
......
......@@ -39,6 +39,9 @@
self.uploadReceiptsButton.hidden = ![BaseViewController isBlankString:model.orderReceiptUrl]?YES:NO;
self.rejectNoteLabel.hidden = [self.stateString isEqualToString:STUDYTASKSTATE_REFUSE]?NO:YES;
NSString *noteString = [model.draws.firstObject remark];
if ([BaseViewController isBlankString:noteString]) {
noteString = @"暂无";
}
self.rejectNoteLabel.text = [NSString stringWithFormat:@"拒绝原因:%@",noteString];
}
......
......@@ -86,7 +86,6 @@
}];
}
#pragma mark - 抽奖数据
- (void)getDrawDatasCompleted:(void(^)(RsLotteryResponse *result))completed
{
......@@ -106,6 +105,7 @@
}];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
RsAwardDraw *drawEntity = self.datasArray[indexPath.row];
......@@ -123,6 +123,7 @@
return cell;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return self.datasArray.count;
......
......@@ -7,7 +7,7 @@
//
#import "ApplyPrizeViewController.h"
#import "MOFSPickerManager.h"
#import "YXPickerManager.h"
@interface ApplyPrizeViewController ()<UITextFieldDelegate>
......@@ -68,12 +68,14 @@
#pragma mark -城市选择器
- (void)selectedCityClickAction
{
[[MOFSPickerManager shareManger] showMOFSAddressPickerWithTitle:@"选择城市" cancelTitle:@"取消" commitTitle:@"完成" commitBlock:^(NSString *address, NSString *zipcode) {
[self.addressButton setTitle:address forState:UIControlStateNormal];
WS(weakSelf);
ToStoreAddress *storeAddress = [Shoppersmanager manager].storeAddress;
NSString *address = [NSString stringWithFormat:@"%@-%@-%@",storeAddress.province,storeAddress.city,storeAddress.country];
[[YXPickerManager shareManager] showAddressPickerView:kMainBlueColor defaultAddress:address commitBlock:^(NSString *address, NSString *zipcode) {
[weakSelf.addressButton setTitle:address forState:UIControlStateNormal];
} cancelBlock:^{
}];
}
#pragma mark - 取消
......
......@@ -111,7 +111,7 @@
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section
{
return CGSizeMake(0, 65);
return CGSizeMake(0, 80);
}
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
......
......@@ -114,7 +114,7 @@
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section
{
return CGSizeMake(0, 65);
return CGSizeMake(0, 80);
}
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "User@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "User@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
Lighting/Resource/Images.xcassets/customer.imageset/User@2x.png

4.82 KB

Lighting/Resource/Images.xcassets/customer.imageset/User@3x.png

6.98 KB

{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "userBox@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "userBox@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
Lighting/Resource/Images.xcassets/userBox.imageset/userBox@2x.png

1.67 KB

Lighting/Resource/Images.xcassets/userBox.imageset/userBox@3x.png

2.21 KB

{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "userBoxsSelected@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "userBoxsSelected@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "write@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "write@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
Lighting/Resource/Images.xcassets/write.imageset/write@2x.png

1.54 KB

Lighting/Resource/Images.xcassets/write.imageset/write@3x.png

1.92 KB

......@@ -595,12 +595,6 @@
<color key="textColor" red="0.8862745098" green="0.25490196079999999" blue="0.2274509804" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2017年03月15日09:37:11" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FxL-2l-L7S">
<rect key="frame" x="553" y="13" width="171" height="18"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" red="0.8862745098" green="0.25490196079999999" blue="0.2274509804" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="success" translatesAutoresizingMaskIntoConstraints="NO" id="TVJ-v3-b9u">
<rect key="frame" x="132" y="12" width="52" height="20"/>
</imageView>
......@@ -611,16 +605,13 @@
<constraint firstAttribute="bottom" secondItem="SFr-KK-qQK" secondAttribute="bottom" id="cE2-H8-s2b"/>
<constraint firstItem="JtF-PP-dfH" firstAttribute="centerY" secondItem="P5y-ef-l4E" secondAttribute="centerY" id="eje-7d-05I"/>
<constraint firstAttribute="trailing" secondItem="SFr-KK-qQK" secondAttribute="trailing" constant="50" id="hPO-pC-QjS"/>
<constraint firstItem="FxL-2l-L7S" firstAttribute="centerY" secondItem="P5y-ef-l4E" secondAttribute="centerY" id="iaJ-yZ-zkr"/>
<constraint firstItem="JtF-PP-dfH" firstAttribute="leading" secondItem="P5y-ef-l4E" secondAttribute="leading" constant="50" id="lH1-xG-wok"/>
<constraint firstItem="SFr-KK-qQK" firstAttribute="leading" secondItem="P5y-ef-l4E" secondAttribute="leading" constant="50" id="n0t-Z1-F4S"/>
<constraint firstAttribute="trailing" secondItem="FxL-2l-L7S" secondAttribute="trailing" constant="50" id="yFm-7E-d3K"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<connections>
<outlet property="confirmStateImageView" destination="TVJ-v3-b9u" id="emb-Tk-sSK"/>
<outlet property="confirmTimeLabel" destination="FxL-2l-L7S" id="tPv-BX-7eU"/>
<outlet property="confirmTitle" destination="JtF-PP-dfH" id="dFj-a3-egf"/>
</connections>
</tableViewCell>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -807,11 +807,11 @@
<rect key="frame" x="0.0" y="529.5" width="768" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="R0y-9Q-NEJ" id="tLA-TB-cwT">
<rect key="frame" x="0.0" y="0.0" width="696" height="43.5"/>
<rect key="frame" x="0.0" y="0.0" width="729" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="折扣金额" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="iOu-WG-fyV">
<rect key="frame" x="13.5" y="12" width="564.5" height="21"/>
<rect key="frame" x="13.5" y="12" width="597" height="21"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......
......@@ -861,11 +861,16 @@ extern NSString *const ANIMATION;
刷新综合讨论区
*/
extern NSString *const REFRESH_FROUMLIST;
/**
修改导购名称
*/
extern NSString *const CHANGEGUIDENAME;
/**
设置当前客户
*/
extern NSString *const SETUPCURRENTCUSTOMER;
/**
退出当前客户
*/
extern NSString *const EMPTYCUSTOMERNAME;
......@@ -735,11 +735,18 @@ NSString *const ANIMATION = @"animationTimeLine";
刷新综合讨论区
*/
NSString *const REFRESH_FROUMLIST = @"RefreshList";
/**
修改导购名字
*/
NSString *const CHANGEGUIDENAME = @"CHANGEGUIDENAME";
/**
设置当前客户
*/
NSString *const SETUPCURRENTCUSTOMER = @"SETUPCURRENTCUSTOMER";
/**
退出当前客户
*/
NSString *const EMPTYCUSTOMERNAME = @"EMPTYCUSTOMERNAME";
......@@ -10,13 +10,5 @@
@interface CustomButton : UIButton
@property (nonatomic,strong) UILabel *instructions;
/**
* 数量指示
*/
@property (nonatomic,assign) NSInteger instructionsNumber;
@end
......@@ -7,7 +7,6 @@
//
#import "CustomButton.h"
#import "instructionsLabe.h"
#define WIDTH self.frame.size.width
......@@ -27,24 +26,6 @@
}
- (void)setInstructionsNumber:(NSInteger)instructionsNumber
{
_instructionsNumber = instructionsNumber;
for (UIView *subview in self.subviews) {
if ([subview isKindOfClass:[instructionsLabe class]]) {
[subview removeFromSuperview];
break;
}
}
if (_instructionsNumber > 0) {
instructionsLabe *labe = [[instructionsLabe alloc]initWithFrame:CGRectMake(WIDTH-25, 0, 13, 13)];
labe.instructionsNumber = _instructionsNumber;
[self addSubview:labe];
}
}
- (CGRect)imageRectForContentRect:(CGRect)contentRect
......
//
// instructionsLabe.h
// Lighting
//
// Created by 曹云霄 on 16/4/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface instructionsLabe : UILabel
/**
* 显示指示器的数量
*/
@property (nonatomic,assign) NSInteger instructionsNumber;
@end
//
// instructionsLabe.m
// Lighting
//
// Created by 曹云霄 on 16/4/29.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "instructionsLabe.h"
@implementation instructionsLabe
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
self.layer.masksToBounds = YES;
self.layer.cornerRadius = self.frame.size.width/2;
self.backgroundColor = [UIColor redColor];
self.textColor = [UIColor whiteColor];
self.font = [UIFont systemFontOfSize:8];
self.textAlignment = NSTextAlignmentCenter;
}
return self;
}
- (void)setInstructionsNumber:(NSInteger)instructionsNumber
{
_instructionsNumber = instructionsNumber;
self.text = [NSString stringWithFormat:@"%ld",_instructionsNumber];
}
@end
/* Copyright (c) 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// These node, element, and document classes implement a subset of the methods
// provided by NSXML. While NSXML behavior is mimicked as much as possible,
// there are important differences.
//
// The biggest difference is that, since this is based on libxml2, there
// is no retain model for the underlying node data. Rather than copy every
// node obtained from a parse tree (which would have a substantial memory
// impact), we rely on weak references, and it is up to the code that
// created a document to retain it for as long as any
// references rely on nodes inside that document tree.
#import <Foundation/Foundation.h>
// libxml includes require that the target Header Search Paths contain
//
// /usr/include/libxml2
//
// and Other Linker Flags contain
//
// -lxml2
#import <libxml/tree.h>
#import <libxml/parser.h>
#import <libxml/xmlstring.h>
#import <libxml/xpath.h>
#import <libxml/xpathInternals.h>
#if (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4) || defined(GDATA_TARGET_NAMESPACE)
// we need NSInteger for the 10.4 SDK, or we're using target namespace macros
#import "GDataDefines.h"
#endif
#undef _EXTERN
#undef _INITIALIZE_AS
#ifdef GDATAXMLNODE_DEFINE_GLOBALS
#define _EXTERN
#define _INITIALIZE_AS(x) =x
#else
#define _EXTERN extern
#define _INITIALIZE_AS(x)
#endif
// when no namespace dictionary is supplied for XPath, the default namespace
// for the evaluated tree is registered with the prefix _def_ns
_EXTERN const char* kGDataXMLXPathDefaultNamespacePrefix _INITIALIZE_AS("_def_ns");
// Nomenclature for method names:
//
// Node = GData node
// XMLNode = xmlNodePtr
//
// So, for example:
// + (id)nodeConsumingXMLNode:(xmlNodePtr)theXMLNode;
@class NSArray, NSDictionary, NSError, NSString, NSURL;
@class GDataXMLElement, GDataXMLDocument;
enum {
GDataXMLInvalidKind = 0,
GDataXMLDocumentKind,
GDataXMLElementKind,
GDataXMLAttributeKind,
GDataXMLNamespaceKind,
GDataXMLProcessingInstructionKind,
GDataXMLCommentKind,
GDataXMLTextKind,
GDataXMLDTDKind,
GDataXMLEntityDeclarationKind,
GDataXMLAttributeDeclarationKind,
GDataXMLElementDeclarationKind,
GDataXMLNotationDeclarationKind
};
typedef NSUInteger GDataXMLNodeKind;
@interface GDataXMLNode : NSObject {
@protected
// NSXMLNodes can have a namespace URI or prefix even if not part
// of a tree; xmlNodes cannot. When we create nodes apart from
// a tree, we'll store the dangling prefix or URI in the xmlNode's name,
// like
// "prefix:name"
// or
// "{http://uri}:name"
//
// We will fix up the node's namespace and name (and those of any children)
// later when adding the node to a tree with addChild: or addAttribute:.
// See fixUpNamespacesForNode:.
xmlNodePtr xmlNode_; // may also be an xmlAttrPtr or xmlNsPtr
BOOL shouldFreeXMLNode_; // if yes, xmlNode_ will be free'd in dealloc
// cached values
NSString *cachedName_;
NSArray *cachedChildren_;
NSArray *cachedAttributes_;
}
+ (GDataXMLElement *)elementWithName:(NSString *)name;
+ (GDataXMLElement *)elementWithName:(NSString *)name stringValue:(NSString *)value;
+ (GDataXMLElement *)elementWithName:(NSString *)name URI:(NSString *)value;
+ (id)attributeWithName:(NSString *)name stringValue:(NSString *)value;
+ (id)attributeWithName:(NSString *)name URI:(NSString *)attributeURI stringValue:(NSString *)value;
+ (id)namespaceWithName:(NSString *)name stringValue:(NSString *)value;
+ (id)textWithStringValue:(NSString *)value;
- (NSString *)stringValue;
- (void)setStringValue:(NSString *)str;
- (NSUInteger)childCount;
- (NSArray *)children;
- (GDataXMLNode *)childAtIndex:(unsigned)index;
- (NSString *)localName;
- (NSString *)name;
- (NSString *)prefix;
- (NSString *)URI;
- (GDataXMLNodeKind)kind;
- (NSString *)XMLString;
+ (NSString *)localNameForName:(NSString *)name;
+ (NSString *)prefixForName:(NSString *)name;
// This is the preferred entry point for nodesForXPath. This takes an explicit
// namespace dictionary (keys are prefixes, values are URIs).
- (NSArray *)nodesForXPath:(NSString *)xpath namespaces:(NSDictionary *)namespaces error:(NSError **)error;
// This implementation of nodesForXPath registers namespaces only from the
// document's root node. _def_ns may be used as a prefix for the default
// namespace, though there's no guarantee that the default namespace will
// be consistenly the same namespace in server responses.
- (NSArray *)nodesForXPath:(NSString *)xpath error:(NSError **)error;
// access to the underlying libxml node; be sure to release the cached values
// if you change the underlying tree at all
- (xmlNodePtr)XMLNode;
- (void)releaseCachedValues;
@end
@interface GDataXMLElement : GDataXMLNode
- (id)initWithXMLString:(NSString *)str error:(NSError **)error;
- (NSArray *)namespaces;
- (void)setNamespaces:(NSArray *)namespaces;
- (void)addNamespace:(GDataXMLNode *)aNamespace;
- (void)addChild:(GDataXMLNode *)child;
- (void)removeChild:(GDataXMLNode *)child;
- (NSArray *)elementsForName:(NSString *)name;
- (NSArray *)elementsForLocalName:(NSString *)localName URI:(NSString *)URI;
- (NSArray *)attributes;
- (GDataXMLNode *)attributeForName:(NSString *)name;
- (GDataXMLNode *)attributeForLocalName:(NSString *)name URI:(NSString *)attributeURI;
- (void)addAttribute:(GDataXMLNode *)attribute;
- (NSString *)resolvePrefixForNamespaceURI:(NSString *)namespaceURI;
@end
@interface GDataXMLDocument : NSObject {
@protected
xmlDoc* xmlDoc_; // strong; always free'd in dealloc
}
- (id)initWithXMLString:(NSString *)str options:(unsigned int)mask error:(NSError **)error;
- (id)initWithData:(NSData *)data options:(unsigned int)mask error:(NSError **)error;
- (id)initWithRootElement:(GDataXMLElement *)element;
- (GDataXMLElement *)rootElement;
- (NSData *)XMLData;
- (void)setVersion:(NSString *)version;
- (void)setCharacterEncoding:(NSString *)encoding;
// This is the preferred entry point for nodesForXPath. This takes an explicit
// namespace dictionary (keys are prefixes, values are URIs).
- (NSArray *)nodesForXPath:(NSString *)xpath namespaces:(NSDictionary *)namespaces error:(NSError **)error;
// This implementation of nodesForXPath registers namespaces only from the
// document's root node. _def_ns may be used as a prefix for the default
// namespace, though there's no guarantee that the default namespace will
// be consistenly the same namespace in server responses.
- (NSArray *)nodesForXPath:(NSString *)xpath error:(NSError **)error;
- (NSString *)description;
@end
This diff is collapsed.
//
// MOFSAddressPickerView.h
// MOFSPickerManager
//
// Created by lzqhoh@163.com on 16/8/31.
// Copyright © 2016年 luoyuan. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MOFSToolbar.h"
#import "PickerAddressModel.h"
typedef NS_ENUM(NSInteger, SearchType) {
SearchTypeAddress = 0,
SearchTypeZipcode
};
@interface MOFSAddressPickerView : UIPickerView
@property (nonatomic, assign) NSInteger showTag;
@property (nonatomic, strong) MOFSToolbar *toolBar;
@property (nonatomic, strong) UIView *containerView;
- (void)showMOFSAddressPickerCommitBlock:(void(^)(NSString *address, NSString *zipcode))commitBlock cancelBlock:(void(^)())cancelBlock;
- (void)searchType:(SearchType)searchType key:(NSString *)key block:(void(^)(NSString *result))block;
@end
//
// MOFSDatePicker.h
// MOFSPickerManager
//
// Created by lzqhoh@163.com on 16/8/26.
// Copyright © 2016年 luoyuan. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MOFSToolbar.h"
typedef void (^CommitBlock)(NSDate *date);
typedef void (^CancelBlock)();
@interface MOFSDatePicker : UIDatePicker
@property (nonatomic, strong) MOFSToolbar *toolBar;
@property (nonatomic, strong) UIView *containerView;
- (void)showMOFSDatePickerViewWithTag:(NSInteger)tag firstDate:(NSDate *)date commit:(CommitBlock)commitBlock cancel:(CancelBlock)cancelBlock;
@end
//
// MOFSDatePicker.m
// MOFSPickerManager
//
// Created by lzqhoh@163.com on 16/8/26.
// Copyright © 2016年 luoyuan. All rights reserved.
//
#import "MOFSDatePicker.h"
@interface MOFSDatePicker()
@property (nonatomic, strong) NSMutableDictionary *recordDic;
@property (nonatomic, strong) UIView *bgView;
@end
@implementation MOFSDatePicker
- (NSMutableDictionary *)recordDic {
if (!_recordDic) {
_recordDic = [NSMutableDictionary dictionary];
}
return _recordDic;
}
#pragma mark - create UI
- (instancetype)initWithFrame:(CGRect)frame {
[self initToolBar];
[self initContainerView];
CGRect initialFrame;
if (CGRectIsEmpty(frame)) {
initialFrame = CGRectMake(0, self.toolBar.frame.size.height, UISCREEN_WIDTH, 216);
} else {
initialFrame = frame;
}
self = [super initWithFrame:initialFrame];
if (self) {
self.backgroundColor = [UIColor whiteColor];
self.datePickerMode = UIDatePickerModeDate;
self.autoresizingMask = UIViewAutoresizingFlexibleWidth;
[self initBgView];
}
return self;
}
- (void)initToolBar {
self.toolBar = [[MOFSToolbar alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, 44)];
self.toolBar.translucent = NO;
}
- (void)initContainerView {
self.containerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)];
self.containerView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.4];
self.containerView.userInteractionEnabled = YES;
[self.containerView addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hiddenWithAnimation)]];
}
- (void)initBgView {
self.bgView = [[UIView alloc] initWithFrame:CGRectMake(0, UISCREEN_HEIGHT - self.frame.size.height - 44, UISCREEN_WIDTH, self.frame.size.height + self.toolBar.frame.size.height)];
}
#pragma mark - Action
- (void)showMOFSDatePickerViewWithTag:(NSInteger)tag firstDate:(NSDate *)date commit:(CommitBlock)commitBlock cancel:(CancelBlock)cancelBlock {
NSString *showtagStr = [NSString stringWithFormat:@"%ld",tag];
if ([self.recordDic.allKeys containsObject:showtagStr]) {
NSDate *date1 = self.recordDic[showtagStr][showtagStr];
self.date = date1;
} else {
if (date) {
self.date = date;
} else {
self.date = [NSDate date];
}
}
[self showWithAnimation];
__weak typeof(self) weakSelf = self;
self.toolBar.cancelBlock = ^{
[weakSelf hiddenWithAnimation];
if (cancelBlock) {
cancelBlock();
}
};
self.toolBar.commitBlock = ^{
NSDictionary *dic = [NSDictionary dictionaryWithObject:weakSelf.date forKey:showtagStr];
[weakSelf.recordDic setValue:dic forKey:showtagStr];
[weakSelf hiddenWithAnimation];
if (commitBlock) {
commitBlock(weakSelf.date);
}
};
}
- (void)showWithAnimation {
[self addViews];
self.containerView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.0];
CGFloat height = self.bgView.frame.size.height;
self.bgView.center = CGPointMake(UISCREEN_WIDTH / 2, UISCREEN_HEIGHT + height / 2);
[UIView animateWithDuration:0.25 animations:^{
self.bgView.center = CGPointMake(UISCREEN_WIDTH / 2, UISCREEN_HEIGHT - height / 2);
self.containerView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.4];
}];
}
- (void)hiddenWithAnimation {
CGFloat height = self.bgView.frame.size.height;
[UIView animateWithDuration:0.25 animations:^{
self.bgView.center = CGPointMake(UISCREEN_WIDTH / 2, UISCREEN_HEIGHT + height / 2);
self.containerView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.0];
} completion:^(BOOL finished) {
[self hiddenViews];
}];
}
- (void)addViews {
UIWindow *window = [UIApplication sharedApplication].keyWindow;
[window addSubview:self.containerView];
[window addSubview:self.bgView];
[self.bgView addSubview:self.toolBar];
[self.bgView addSubview:self];
}
- (void)hiddenViews {
[self removeFromSuperview];
[self.toolBar removeFromSuperview];
[self.bgView removeFromSuperview];
[self.containerView removeFromSuperview];
}
@end
//
// MOFSPickerManager.h
// MOFSPickerManager
//
// Created by lzqhoh@163.com on 16/8/26.
// Copyright © 2016年 luoyuan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MOFSDatePicker.h"
#import "MOFSPickerView.h"
#import "MOFSAddressPickerView.h"
typedef void (^DatePickerCommitBlock)(NSDate *date);
typedef void (^DatePickerCancelBlock)();
typedef void (^PickerViewCommitBlock)(NSString *string);
typedef void (^PickerViewCancelBlock)();
@interface MOFSPickerManager : NSObject
+ (MOFSPickerManager *)shareManger;
@property (nonatomic, strong) MOFSDatePicker *datePicker;
@property (nonatomic, strong) MOFSPickerView *pickView;
@property (nonatomic, strong) MOFSAddressPickerView *addressPicker;
// ================================DatePicker===================================//
/**
* show default datePicker.
* default datePickerMode : UIDatePickerModeDate.
* default cancelTitle : "取消".
* default commitTitle : "确定".
* default title : "".
* @param tag : will remeber the last date you had select.
*/
- (void)showDatePickerWithTag:(NSInteger)tag commitBlock:(DatePickerCommitBlock)commitBlock cancelBlock:(DatePickerCancelBlock)cancelBlock;
/**
* show default datePicker with your custom datePickerMode.
* default cancelTitle : "取消".
* default commitTitle : "确定".
* default title : "".
* @param tag : will remeber the last date you had select.
* @param model : UIDatePickerMode
*/
- (void)showDatePickerWithTag:(NSInteger)tag datePickerMode:(UIDatePickerMode)mode commitBlock:(DatePickerCommitBlock)commitBlock cancelBlock:(DatePickerCancelBlock)cancelBlock;
/**
* show datePicker with your custom datePickerMode ,title , cancelTitle , commitTitle.
* @param tag : will remeber the last date you had select.
* @param title : toolbar title
* @param cancelTitle : "".
* @param commitTitle : "".
* @param model : UIDatePickerMode.
*/
- (void)showDatePickerWithTag:(NSInteger)tag title:(NSString *)title cancelTitle:(NSString *)cancelTitle commitTitle:(NSString *)commitTitle datePickerMode:(UIDatePickerMode)mode commitBlock:(DatePickerCommitBlock)commitBlock cancelBlock:(DatePickerCancelBlock)cancelBlock;
/**
* show datePicker with your custom datePickerMode ,firstDate , minDate , maxDate.
* @param firstDate : show date.
* @param minDate : minimumDate.
* @param maxDate : maximumDate.
* @param model : UIDatePickerMode.
*/
- (void)showDatePickerWithTag:(NSInteger)tag firstDate:(NSDate *)firstDate minDate:(NSDate *)minDate maxDate:(NSDate *)maxDate datePickerMode:(UIDatePickerMode)mode commitBlock:(DatePickerCommitBlock)commitBlock cancelBlock:(DatePickerCancelBlock)cancelBlock;
/**
* show datePicker with your custom datePickerMode ,firstDate ,title , cancelTitle , commitTitle , minDate , maxDate.
* @param title : toolbar title
* @param cancelTitle : "".
* @param commitTitle : "".
* @param firstDate : show date.
* @param minDate : minimumDate.
* @param maxDate : maximumDate.
* @param model : UIDatePickerMode.
* @param tag : will remeber the last date you had select.
*/
- (void)showDatePickerWithTitle:(NSString *)title cancelTitle:(NSString *)cancelTitle commitTitle:(NSString *)commitTitle firstDate:(NSDate *)firstDate minDate:(NSDate *)minDate maxDate:(NSDate *)maxDate datePickerMode:(UIDatePickerMode)mode tag:(NSInteger)tag commitBlock:(DatePickerCommitBlock)commitBlock cancelBlock:(DatePickerCancelBlock)cancelBlock;
// ================================pickerView===================================//
- (void)showPickerViewWithDataArray:(NSArray *)array tag:(NSInteger)tag title:(NSString *)title cancelTitle:(NSString *)cancelTitle commitTitle:(NSString *)commitTitle commitBlock:(PickerViewCommitBlock)commitBlock cancelBlock:(PickerViewCancelBlock)cancelBlock;
//===============================addressPicker===================================//
/**
* show addressPicker with your custom title, cancelTitle, commitTitle
*
* @param title your custom title
* @param cancelTitle your custom cancelTitle
* @param commitTitle your custom commitTitle
* @param commitBlock
* @param cancelBlock
*/
- (void)showMOFSAddressPickerWithTitle:(NSString *)title cancelTitle:(NSString *)cancelTitle commitTitle:(NSString *)commitTitle commitBlock:(void(^)(NSString *address, NSString *zipcode))commitBlock cancelBlock:(void(^)())cancelBlock;
/**
* searchAddressByZipcode
*
* @param zipcode
* @param block
*/
- (void)searchAddressByZipcode:(NSString *)zipcode block:(void(^)(NSString *address))block;
/**
* searchZipCodeByAddress
*
* @param address
* @param block
*/
- (void)searchZipCodeByAddress:(NSString *)address block:(void(^)(NSString *zipcode))block;
@end
//
// MOFSPickerManager.m
// MOFSPickerManager
//
// Created by lzqhoh@163.com on 16/8/26.
// Copyright © 2016年 luoyuan. All rights reserved.
//
#import "MOFSPickerManager.h"
@implementation MOFSPickerManager
+ (MOFSPickerManager *)shareManger {
static MOFSPickerManager *manager = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
manager = [self new];
});
return manager;
}
- (MOFSDatePicker *)datePicker {
if (!_datePicker) {
_datePicker = [MOFSDatePicker new];
}
return _datePicker;
}
- (MOFSPickerView *)pickView {
if (!_pickView) {
_pickView = [MOFSPickerView new];
}
return _pickView;
}
- (MOFSAddressPickerView *)addressPicker {
if (!_addressPicker) {
_addressPicker = [MOFSAddressPickerView new];
}
return _addressPicker;
}
// ================================DatePicker===================================//
- (void)showDatePickerWithTag:(NSInteger)tag commitBlock:(DatePickerCommitBlock)commitBlock cancelBlock:(DatePickerCancelBlock)cancelBlock {
self.datePicker.datePickerMode = UIDatePickerModeDate;
self.datePicker.toolBar.titleBarTitle = @"";
self.datePicker.toolBar.cancelBarTitle = @"取消";
self.datePicker.toolBar.commitBarTitle = @"确定";
self.datePicker.minimumDate = nil;
self.datePicker.maximumDate = nil;
[self.datePicker showMOFSDatePickerViewWithTag:tag firstDate:nil commit:^(NSDate *date) {
if (commitBlock) {
commitBlock(date);
}
} cancel:^{
if (cancelBlock) {
cancelBlock();
}
}];
}
- (void)showDatePickerWithTag:(NSInteger)tag datePickerMode:(UIDatePickerMode)mode commitBlock:(DatePickerCommitBlock)commitBlock cancelBlock:(DatePickerCancelBlock)cancelBlock {
self.datePicker.datePickerMode = mode;
self.datePicker.toolBar.titleBarTitle = @"";
self.datePicker.toolBar.cancelBarTitle = @"取消";
self.datePicker.toolBar.commitBarTitle = @"确定";
self.datePicker.minimumDate = nil;
self.datePicker.maximumDate = nil;
[self.datePicker showMOFSDatePickerViewWithTag:tag firstDate:nil commit:^(NSDate *date) {
if (commitBlock) {
commitBlock(date);
}
} cancel:^{
if (cancelBlock) {
cancelBlock();
}
}];
}
- (void)showDatePickerWithTag:(NSInteger)tag title:(NSString *)title cancelTitle:(NSString *)cancelTitle commitTitle:(NSString *)commitTitle datePickerMode:(UIDatePickerMode)mode commitBlock:(DatePickerCommitBlock)commitBlock cancelBlock:(DatePickerCancelBlock)cancelBlock {
self.datePicker.datePickerMode = mode;
self.datePicker.toolBar.titleBarTitle = title;
self.datePicker.toolBar.cancelBarTitle = cancelTitle;
self.datePicker.toolBar.commitBarTitle = commitTitle;
self.datePicker.minimumDate = nil;
self.datePicker.maximumDate = nil;
[self.datePicker showMOFSDatePickerViewWithTag:tag firstDate:nil commit:^(NSDate *date) {
if (commitBlock) {
commitBlock(date);
}
} cancel:^{
if (cancelBlock) {
cancelBlock();
}
}];
}
- (void)showDatePickerWithTag:(NSInteger)tag firstDate:(NSDate *)firstDate minDate:(NSDate *)minDate maxDate:(NSDate *)maxDate datePickerMode:(UIDatePickerMode)mode commitBlock:(DatePickerCommitBlock)commitBlock cancelBlock:(DatePickerCancelBlock)cancelBlock {
self.datePicker.datePickerMode = mode;
self.datePicker.toolBar.titleBarTitle = @"";
self.datePicker.toolBar.cancelBarTitle = @"取消";
self.datePicker.toolBar.commitBarTitle = @"确定";
self.datePicker.minimumDate = minDate;
self.datePicker.maximumDate = maxDate;
[self.datePicker showMOFSDatePickerViewWithTag:tag firstDate:firstDate commit:^(NSDate *date) {
if (commitBlock) {
commitBlock(date);
}
} cancel:^{
if (cancelBlock) {
cancelBlock();
}
}];
}
- (void)showDatePickerWithTitle:(NSString *)title cancelTitle:(NSString *)cancelTitle commitTitle:(NSString *)commitTitle firstDate:(NSDate *)firstDate minDate:(NSDate *)minDate maxDate:(NSDate *)maxDate datePickerMode:(UIDatePickerMode)mode tag:(NSInteger)tag commitBlock:(DatePickerCommitBlock)commitBlock cancelBlock:(DatePickerCancelBlock)cancelBlock {
self.datePicker.datePickerMode = mode;
self.datePicker.toolBar.titleBarTitle = title;
self.datePicker.toolBar.cancelBarTitle = cancelTitle;
self.datePicker.toolBar.commitBarTitle = commitTitle;
self.datePicker.minimumDate = minDate;
self.datePicker.maximumDate = maxDate;
[self.datePicker showMOFSDatePickerViewWithTag:tag firstDate:firstDate commit:^(NSDate *date) {
if (commitBlock) {
commitBlock(date);
}
} cancel:^{
if (cancelBlock) {
cancelBlock();
}
}];
}
// ================================pickerView===================================//
- (void)showPickerViewWithDataArray:(NSArray *)array tag:(NSInteger)tag title:(NSString *)title cancelTitle:(NSString *)cancelTitle commitTitle:(NSString *)commitTitle commitBlock:(PickerViewCommitBlock)commitBlock cancelBlock:(PickerViewCancelBlock)cancelBlock {
self.pickView.showTag = tag;
self.pickView.toolBar.titleBarTitle = title;
self.pickView.toolBar.cancelBarTitle = cancelTitle;
self.pickView.toolBar.commitBarTitle = commitTitle;
[self.pickView showMOFSPickerViewWithDataArray:array commitBlock:^(NSString *string) {
if (commitBlock) {
commitBlock(string);
}
} cancelBlock:^{
if (cancelBlock) {
cancelBlock();
}
}];
}
//===============================addressPicker===================================//
- (void)showMOFSAddressPickerWithTitle:(NSString *)title cancelTitle:(NSString *)cancelTitle commitTitle:(NSString *)commitTitle commitBlock:(void(^)(NSString *address, NSString *zipcode))commitBlock cancelBlock:(void(^)())cancelBlock {
self.addressPicker.toolBar.titleBarTitle = title;
self.addressPicker.toolBar.titleBarTextColor = [UIColor blackColor];
self.addressPicker.toolBar.cancelBarTitle = cancelTitle;
self.addressPicker.toolBar.commitBarTitle = commitTitle;
[self.addressPicker showMOFSAddressPickerCommitBlock:^(NSString *address, NSString *zipcode) {
if (commitBlock) {
commitBlock(address, zipcode);
}
} cancelBlock:^{
if (cancelBlock) {
cancelBlock();
}
}];
}
- (void)searchAddressByZipcode:(NSString *)zipcode block:(void(^)(NSString *address))block {
[self.addressPicker searchType:SearchTypeAddress key:zipcode block:^(NSString *result) {
if (block) {
block(result);
}
}];
}
- (void)searchZipCodeByAddress:(NSString *)address block:(void(^)(NSString *zipcode))block {
[self.addressPicker searchType:SearchTypeZipcode key:address block:^(NSString *result) {
if (block) {
block(result);
}
}];
}
@end
//
// MOFSPickerView.h
// MOFSPickerManager
//
// Created by lzqhoh@163.com on 16/8/30.
// Copyright © 2016年 luoyuan. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MOFSToolbar.h"
@interface MOFSPickerView : UIPickerView
@property (nonatomic, assign) NSInteger showTag;
@property (nonatomic, strong) MOFSToolbar *toolBar;
@property (nonatomic, strong) UIView *containerView;
- (void)showMOFSPickerViewWithDataArray:(NSArray *)array commitBlock:(void(^)(NSString *string))commitBlock cancelBlock:(void(^)())cancelBlock;
@end
//
// MOFSPickerView.m
// MOFSPickerManager
//
// Created by lzqhoh@163.com on 16/8/30.
// Copyright © 2016年 luoyuan. All rights reserved.
//
#import "MOFSPickerView.h"
@interface MOFSPickerView() <UIPickerViewDelegate,UIPickerViewDataSource>
@property (nonatomic, strong) NSMutableDictionary *recordDic;
@property (nonatomic, strong) NSMutableArray *dataArr;
@property (nonatomic, strong) UIView *bgView;
@property (nonatomic, assign) NSInteger selectedRow;
@end
@implementation MOFSPickerView
- (NSMutableArray *)dataArr {
if (!_dataArr) {
_dataArr = [NSMutableArray array];
}
return _dataArr;
}
- (NSMutableDictionary *)recordDic {
if (!_recordDic) {
_recordDic = [NSMutableDictionary dictionary];
}
return _recordDic;
}
#pragma mark - create UI
- (instancetype)initWithFrame:(CGRect)frame {
[self initToolBar];
[self initContainerView];
CGRect initialFrame;
if (CGRectIsEmpty(frame)) {
initialFrame = CGRectMake(0, self.toolBar.frame.size.height, UISCREEN_WIDTH, 216);
} else {
initialFrame = frame;
}
self = [super initWithFrame:initialFrame];
if (self) {
self.backgroundColor = [UIColor whiteColor];
self.autoresizingMask = UIViewAutoresizingFlexibleWidth;
self.delegate = self;
self.dataSource = self;
[self initBgView];
}
return self;
}
- (void)initToolBar {
self.toolBar = [[MOFSToolbar alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, 44)];
self.toolBar.translucent = NO;
}
- (void)initContainerView {
self.containerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)];
self.containerView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.4];
self.containerView.userInteractionEnabled = YES;
[self.containerView addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hiddenWithAnimation)]];
}
- (void)initBgView {
self.bgView = [[UIView alloc] initWithFrame:CGRectMake(0, UISCREEN_HEIGHT - self.frame.size.height - 44, UISCREEN_WIDTH, self.frame.size.height + self.toolBar.frame.size.height)];
}
#pragma mark - Action
- (void)showMOFSPickerViewWithDataArray:(NSArray *)array commitBlock:(void(^)(NSString *string))commitBlock cancelBlock:(void(^)())cancelBlock {
self.dataArr = [NSMutableArray arrayWithArray:array];
[self reloadAllComponents];
self.selectedRow = 0;
NSString *tagStr = [NSString stringWithFormat:@"%ld",self.showTag];
if ([self.recordDic.allKeys containsObject:tagStr]) {
self.selectedRow = [self.recordDic[tagStr] integerValue];
}
[self selectRow:self.selectedRow inComponent:0 animated:NO];
[self showWithAnimation];
__weak typeof(self) weakSelf = self;
self.toolBar.cancelBlock = ^ {
if (cancelBlock) {
[weakSelf hiddenWithAnimation];
cancelBlock();
}
};
self.toolBar.commitBlock = ^ {
[weakSelf hiddenWithAnimation];
if (commitBlock) {
NSString *rowStr = [NSString stringWithFormat:@"%ld",weakSelf.selectedRow];
[weakSelf.recordDic setValue:rowStr forKey:tagStr];
commitBlock(weakSelf.dataArr[weakSelf.selectedRow]);
}
};
}
- (void)showWithAnimation {
[self addViews];
self.containerView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.0];
CGFloat height = self.bgView.frame.size.height;
self.bgView.center = CGPointMake(UISCREEN_WIDTH / 2, UISCREEN_HEIGHT + height / 2);
[UIView animateWithDuration:0.25 animations:^{
self.bgView.center = CGPointMake(UISCREEN_WIDTH / 2, UISCREEN_HEIGHT - height / 2);
self.containerView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.4];
}];
}
- (void)hiddenWithAnimation {
CGFloat height = self.bgView.frame.size.height;
[UIView animateWithDuration:0.25 animations:^{
self.bgView.center = CGPointMake(UISCREEN_WIDTH / 2, UISCREEN_HEIGHT + height / 2);
self.containerView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.0];
} completion:^(BOOL finished) {
[self hiddenViews];
}];
}
- (void)addViews {
UIWindow *window = [UIApplication sharedApplication].keyWindow;
[window addSubview:self.containerView];
[window addSubview:self.bgView];
[self.bgView addSubview:self.toolBar];
[self.bgView addSubview:self];
}
- (void)hiddenViews {
[self removeFromSuperview];
[self.toolBar removeFromSuperview];
[self.bgView removeFromSuperview];
[self.containerView removeFromSuperview];
}
#pragma mark - UIPickerViewDelegate,UIPickerViewDataSource
- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView {
return 1;
}
- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component {
return self.dataArr.count;
}
- (CGFloat)pickerView:(UIPickerView *)pickerView rowHeightForComponent:(NSInteger)component {
return 44;
}
- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component {
return self.dataArr[row];
}
- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component {
self.selectedRow = row;
}
@end
//
// MOFSToolbar.h
// MOFSPickerManager
//
// Created by luoyuan on 16/8/24.
// Copyright © 2016年 luoyuan. All rights reserved.
//
#import <UIKit/UIKit.h>
#define UISCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width
#define UISCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height
@interface MOFSToolbar : UIToolbar
@property (nonatomic, strong) UIBarButtonItem *cancelBar;
@property (nonatomic, strong) UIBarButtonItem *commitBar;
@property (nonatomic, strong) UIBarButtonItem *titleBar;
/**
default Title: "取消"
*/
@property (nonatomic, strong) NSString *cancelBarTitle;
/**
default Color: [UIColor colorWithRed:0.090 green:0.463 blue:0.906 alpha:1]
*/
@property (nonatomic, strong) UIColor *cancelBarTintColor;
/**
default Title: "完成"
*/
@property (nonatomic, strong) NSString *commitBarTitle;
/**
default Color: [UIColor colorWithRed:0.090 green:0.463 blue:0.906 alpha:1]
*/
@property (nonatomic, strong) UIColor *commitBarTintColor;
/**
default Title: ""
*/
@property (nonatomic, strong) NSString *titleBarTitle;
/**
default Color: [UIColor colorWithRed:0.804 green:0.804 blue:0.804 alpha:1]
*/
@property (nonatomic, strong) UIColor *titleBarTextColor;
@property (nonatomic, strong) void (^cancelBlock)();
@property (nonatomic, strong) void (^commitBlock)();
@end
//
// MOFSToolbar.m
// MOFSPickerManager
//
// Created by luoyuan on 16/8/24.
// Copyright © 2016年 luoyuan. All rights reserved.
//
#import "MOFSToolbar.h"
#define BAR_COLOR [UIColor colorWithRed:0.090 green:0.463 blue:0.906 alpha:1]
#define LINE_COLOR [UIColor colorWithRed:0.804 green:0.804 blue:0.804 alpha:1]
@implementation MOFSToolbar
- (instancetype)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
self.commitBar = [[UIBarButtonItem alloc] initWithTitle:@"完成" style:UIBarButtonItemStyleDone target:self action:@selector(commitAction)];
self.commitBar.tintColor = BAR_COLOR;
self.cancelBar = [[UIBarButtonItem alloc] initWithTitle:@"取消" style:UIBarButtonItemStyleDone target:self action:@selector(cancelAction)];
self.cancelBar.tintColor = BAR_COLOR;
self.titleBar = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStyleDone target:self action:nil];
self.titleBar.enabled = NO;
[self.titleBar setTitleTextAttributes:@{NSFontAttributeName : [UIFont systemFontOfSize:15],
NSForegroundColorAttributeName : LINE_COLOR} forState:UIControlStateNormal];
UIBarButtonItem *nullBar = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:self action:nil];
UIBarButtonItem *leftFixBar = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:self action:nil];
leftFixBar.width = 15;
UIBarButtonItem *rightFixBar = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:self action:nil];
rightFixBar.width = 15;
self.items = @[leftFixBar,self.cancelBar,nullBar,self.titleBar,nullBar,self.commitBar,rightFixBar];
UIView *topLineView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, 0.5)];
topLineView.backgroundColor = LINE_COLOR;
UIView *bottomLineView = [[UIView alloc] initWithFrame:CGRectMake(0, 43.5, UISCREEN_WIDTH, 0.5)];
bottomLineView.backgroundColor = LINE_COLOR;
[self addSubview:topLineView];
[self addSubview:bottomLineView];
[self bringSubviewToFront:bottomLineView];
[self bringSubviewToFront:topLineView];
}
return self;
}
#pragma mark - Action
- (void)cancelAction {
if (self.cancelBlock) {
self.cancelBlock();
}
}
- (void)commitAction {
if (self.commitBlock) {
self.commitBlock();
}
}
#pragma mark - install
- (void)setCancelBarTitle:(NSString *)cancelBarTitle {
if (self.cancelBar) {
self.cancelBar.title = cancelBarTitle;
}
}
- (void)setCancelBarTintColor:(UIColor *)cancelBarTintColor {
if (self.cancelBar) {
self.cancelBar.tintColor = cancelBarTintColor;
}
}
- (void)setCommitBarTitle:(NSString *)commitBarTitle {
if (self.commitBar) {
self.commitBar.title = commitBarTitle;
}
}
- (void)setCommitBarTintColor:(UIColor *)commitBarTintColor {
if (self.commitBar) {
self.commitBar.tintColor = commitBarTintColor;
}
}
- (void)setTitleBarTitle:(NSString *)titleBarTitle {
if (self.titleBar) {
self.titleBar.title = titleBarTitle;
}
}
- (void)setTitleBarTextColor:(UIColor *)titleBarTextColor {
if (self.titleBar) {
[self.titleBar setTitleTextAttributes:@{NSForegroundColorAttributeName : titleBarTextColor} forState:UIControlStateNormal];
}
}
@end
//
// PickerAddressModel.h
// MOFSPickerManager
//
// Created by lzqhoh@163.com on 16/8/31.
// Copyright © 2016年 luoyuan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "GDataXMLNode.h"
@class CityModel,DistrictModel;
@interface PickerAddressModel : NSObject
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *zipcode;
@property (nonatomic, strong) NSMutableArray *list;
- (instancetype)initWithXML:(GDataXMLElement *)xml;
@end
@interface CityModel : NSObject
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *zipcode;
@property (nonatomic, strong) NSMutableArray *list;
- (instancetype)initWithXML:(GDataXMLElement *)xml;
@end
@interface DistrictModel : NSObject
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *zipcode;
- (instancetype)initWithXML:(GDataXMLElement *)xml;
@end
//
// PickerAddressModel.m
// MOFSPickerManager
//
// Created by lzqhoh@163.com on 16/8/31.
// Copyright © 2016年 luoyuan. All rights reserved.
//
#import "PickerAddressModel.h"
@implementation PickerAddressModel
- (NSMutableArray *)list {
if (!_list) {
_list = [NSMutableArray array];
}
return _list;
}
- (instancetype)initWithXML:(GDataXMLElement *)xml {
self.name = [[xml attributeForName:@"name"] stringValue];
if ([xml attributeForName:@"zipcode"]) {
self.zipcode = [[xml attributeForName:@"zipcode"] stringValue];
}
@try {
NSArray *arr = [xml nodesForXPath:@"city" error:nil];
for (int i = 0 ; i < arr.count ; i++ ) {
CityModel *model = [[CityModel alloc] initWithXML:arr[i]];
[self.list addObject:model];
}
} @catch (NSException *exception) {
} @finally {
}
return self;
}
@end
@implementation CityModel
- (NSMutableArray *)list {
if (!_list) {
_list = [NSMutableArray array];
}
return _list;
}
- (instancetype)initWithXML:(GDataXMLElement *)xml {
self.name = [[xml attributeForName:@"name"] stringValue];
if ([xml attributeForName:@"zipcode"]) {
self.zipcode = [[xml attributeForName:@"zipcode"] stringValue];
}
@try {
NSArray *arr = [xml nodesForXPath:@"district" error:nil];
for (int i = 0 ; i < arr.count ; i++ ) {
DistrictModel *model = [[DistrictModel alloc] initWithXML:arr[i]];
[self.list addObject:model];
}
} @catch (NSException *exception) {
} @finally {
}
return self;
}
@end
@implementation DistrictModel
- (instancetype)initWithXML:(GDataXMLElement *)xml {
self.name = [[xml attributeForName:@"name"] stringValue];
if ([xml attributeForName:@"zipcode"]) {
self.zipcode = [[xml attributeForName:@"zipcode"] stringValue];
}
return self;
}
@end
......@@ -423,6 +423,7 @@
return nil;
}
#pragma mark -查询购物车数量
- (void)queryShoppingCarNumber
{
......
......@@ -141,7 +141,7 @@
/**
* 客户默认显示头像
*/
#define ReplaceImage [UIImage imageNamed:@"矢量智能对象"]
#define ReplaceImage [UIImage imageNamed:@"customer"]
/**
......
......@@ -63,6 +63,7 @@ PODS:
- WZLBadge (1.2.6)
- YXAlertController (1.0.7)
- YXKit (0.0.4)
- YXPickerView (0.0.3)
DEPENDENCIES:
- AFNetworking (~> 3.1.0)
......@@ -89,6 +90,7 @@ DEPENDENCIES:
- WZLBadge (~> 1.2.5)
- YXAlertController (~> 1.0.7)
- YXKit (~> 0.0.4)
- YXPickerView (~> 0.0.3)
SPEC CHECKSUMS:
AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67
......@@ -117,7 +119,8 @@ SPEC CHECKSUMS:
WZLBadge: 9ec779dcfd94c825518b395e8315fccaabff1bfa
YXAlertController: 68e27c48976fa9ecc0b82e63166b67863be8b70b
YXKit: ed7714bc185dde43b1a5d1c4f7df760d9b2ec7f7
YXPickerView: c4bd64f27239e9b44b2103c9d7797f6fe2827fa9
PODFILE CHECKSUM: 962a8b96654703335e32ffd05a5bd7c50c577ac2
PODFILE CHECKSUM: bae65ac344dfb378fac981f9d7d3634c65172b38
COCOAPODS: 1.2.1
......@@ -63,6 +63,7 @@ PODS:
- WZLBadge (1.2.6)
- YXAlertController (1.0.7)
- YXKit (0.0.4)
- YXPickerView (0.0.3)
DEPENDENCIES:
- AFNetworking (~> 3.1.0)
......@@ -89,6 +90,7 @@ DEPENDENCIES:
- WZLBadge (~> 1.2.5)
- YXAlertController (~> 1.0.7)
- YXKit (~> 0.0.4)
- YXPickerView (~> 0.0.3)
SPEC CHECKSUMS:
AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67
......@@ -117,7 +119,8 @@ SPEC CHECKSUMS:
WZLBadge: 9ec779dcfd94c825518b395e8315fccaabff1bfa
YXAlertController: 68e27c48976fa9ecc0b82e63166b67863be8b70b
YXKit: ed7714bc185dde43b1a5d1c4f7df760d9b2ec7f7
YXPickerView: c4bd64f27239e9b44b2103c9d7797f6fe2827fa9
PODFILE CHECKSUM: 962a8b96654703335e32ffd05a5bd7c50c577ac2
PODFILE CHECKSUM: bae65ac344dfb378fac981f9d7d3634c65172b38
COCOAPODS: 1.2.1
This diff is collapsed.
CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/AFNetworking
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/AFNetworking" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/AliyunOSSiOS" "${PODS_ROOT}/Headers/Public/Bugly" "${PODS_ROOT}/Headers/Public/DACircularProgress" "${PODS_ROOT}/Headers/Public/DZNEmptyDataSet" "${PODS_ROOT}/Headers/Public/FDFullscreenPopGesture" "${PODS_ROOT}/Headers/Public/IQKeyboardManager" "${PODS_ROOT}/Headers/Public/JCore" "${PODS_ROOT}/Headers/Public/JPush" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/MJRefresh" "${PODS_ROOT}/Headers/Public/MMDrawerController" "${PODS_ROOT}/Headers/Public/MWPhotoBrowser" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/PNChart" "${PODS_ROOT}/Headers/Public/SDWebImage" "${PODS_ROOT}/Headers/Public/UICountingLabel" "${PODS_ROOT}/Headers/Public/UITableView+FDTemplateLayoutCell" "${PODS_ROOT}/Headers/Public/UMengAnalytics" "${PODS_ROOT}/Headers/Public/UMengUShare" "${PODS_ROOT}/Headers/Public/WYPopoverController" "${PODS_ROOT}/Headers/Public/WZLBadge" "${PODS_ROOT}/Headers/Public/YXAlertController" "${PODS_ROOT}/Headers/Public/YXKit" "${PODS_ROOT}/Headers/Public/iCarousel"
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/AFNetworking" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/AliyunOSSiOS" "${PODS_ROOT}/Headers/Public/Bugly" "${PODS_ROOT}/Headers/Public/DACircularProgress" "${PODS_ROOT}/Headers/Public/DZNEmptyDataSet" "${PODS_ROOT}/Headers/Public/FDFullscreenPopGesture" "${PODS_ROOT}/Headers/Public/IQKeyboardManager" "${PODS_ROOT}/Headers/Public/JCore" "${PODS_ROOT}/Headers/Public/JPush" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/MJRefresh" "${PODS_ROOT}/Headers/Public/MMDrawerController" "${PODS_ROOT}/Headers/Public/MWPhotoBrowser" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/PNChart" "${PODS_ROOT}/Headers/Public/SDWebImage" "${PODS_ROOT}/Headers/Public/UICountingLabel" "${PODS_ROOT}/Headers/Public/UITableView+FDTemplateLayoutCell" "${PODS_ROOT}/Headers/Public/UMengAnalytics" "${PODS_ROOT}/Headers/Public/UMengUShare" "${PODS_ROOT}/Headers/Public/WYPopoverController" "${PODS_ROOT}/Headers/Public/WZLBadge" "${PODS_ROOT}/Headers/Public/YXAlertController" "${PODS_ROOT}/Headers/Public/YXKit" "${PODS_ROOT}/Headers/Public/YXPickerView" "${PODS_ROOT}/Headers/Public/iCarousel"
OTHER_LDFLAGS = -framework "CoreGraphics" -framework "MobileCoreServices" -framework "Security" -framework "SystemConfiguration"
PODS_BUILD_DIR = $BUILD_DIR
PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
......
CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/AliyunOSSiOS
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/AliyunOSSiOS" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/AliyunOSSiOS" "${PODS_ROOT}/Headers/Public/Bugly" "${PODS_ROOT}/Headers/Public/DACircularProgress" "${PODS_ROOT}/Headers/Public/DZNEmptyDataSet" "${PODS_ROOT}/Headers/Public/FDFullscreenPopGesture" "${PODS_ROOT}/Headers/Public/IQKeyboardManager" "${PODS_ROOT}/Headers/Public/JCore" "${PODS_ROOT}/Headers/Public/JPush" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/MJRefresh" "${PODS_ROOT}/Headers/Public/MMDrawerController" "${PODS_ROOT}/Headers/Public/MWPhotoBrowser" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/PNChart" "${PODS_ROOT}/Headers/Public/SDWebImage" "${PODS_ROOT}/Headers/Public/UICountingLabel" "${PODS_ROOT}/Headers/Public/UITableView+FDTemplateLayoutCell" "${PODS_ROOT}/Headers/Public/UMengAnalytics" "${PODS_ROOT}/Headers/Public/UMengUShare" "${PODS_ROOT}/Headers/Public/WYPopoverController" "${PODS_ROOT}/Headers/Public/WZLBadge" "${PODS_ROOT}/Headers/Public/YXAlertController" "${PODS_ROOT}/Headers/Public/YXKit" "${PODS_ROOT}/Headers/Public/iCarousel"
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/AliyunOSSiOS" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/AliyunOSSiOS" "${PODS_ROOT}/Headers/Public/Bugly" "${PODS_ROOT}/Headers/Public/DACircularProgress" "${PODS_ROOT}/Headers/Public/DZNEmptyDataSet" "${PODS_ROOT}/Headers/Public/FDFullscreenPopGesture" "${PODS_ROOT}/Headers/Public/IQKeyboardManager" "${PODS_ROOT}/Headers/Public/JCore" "${PODS_ROOT}/Headers/Public/JPush" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/MJRefresh" "${PODS_ROOT}/Headers/Public/MMDrawerController" "${PODS_ROOT}/Headers/Public/MWPhotoBrowser" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/PNChart" "${PODS_ROOT}/Headers/Public/SDWebImage" "${PODS_ROOT}/Headers/Public/UICountingLabel" "${PODS_ROOT}/Headers/Public/UITableView+FDTemplateLayoutCell" "${PODS_ROOT}/Headers/Public/UMengAnalytics" "${PODS_ROOT}/Headers/Public/UMengUShare" "${PODS_ROOT}/Headers/Public/WYPopoverController" "${PODS_ROOT}/Headers/Public/WZLBadge" "${PODS_ROOT}/Headers/Public/YXAlertController" "${PODS_ROOT}/Headers/Public/YXKit" "${PODS_ROOT}/Headers/Public/YXPickerView" "${PODS_ROOT}/Headers/Public/iCarousel"
OTHER_LDFLAGS = -l"resolv" -framework "SystemConfiguration"
PODS_BUILD_DIR = $BUILD_DIR
PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
......
CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/DACircularProgress
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/DACircularProgress" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/AliyunOSSiOS" "${PODS_ROOT}/Headers/Public/Bugly" "${PODS_ROOT}/Headers/Public/DACircularProgress" "${PODS_ROOT}/Headers/Public/DZNEmptyDataSet" "${PODS_ROOT}/Headers/Public/FDFullscreenPopGesture" "${PODS_ROOT}/Headers/Public/IQKeyboardManager" "${PODS_ROOT}/Headers/Public/JCore" "${PODS_ROOT}/Headers/Public/JPush" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/MJRefresh" "${PODS_ROOT}/Headers/Public/MMDrawerController" "${PODS_ROOT}/Headers/Public/MWPhotoBrowser" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/PNChart" "${PODS_ROOT}/Headers/Public/SDWebImage" "${PODS_ROOT}/Headers/Public/UICountingLabel" "${PODS_ROOT}/Headers/Public/UITableView+FDTemplateLayoutCell" "${PODS_ROOT}/Headers/Public/UMengAnalytics" "${PODS_ROOT}/Headers/Public/UMengUShare" "${PODS_ROOT}/Headers/Public/WYPopoverController" "${PODS_ROOT}/Headers/Public/WZLBadge" "${PODS_ROOT}/Headers/Public/YXAlertController" "${PODS_ROOT}/Headers/Public/YXKit" "${PODS_ROOT}/Headers/Public/iCarousel"
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/DACircularProgress" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/AliyunOSSiOS" "${PODS_ROOT}/Headers/Public/Bugly" "${PODS_ROOT}/Headers/Public/DACircularProgress" "${PODS_ROOT}/Headers/Public/DZNEmptyDataSet" "${PODS_ROOT}/Headers/Public/FDFullscreenPopGesture" "${PODS_ROOT}/Headers/Public/IQKeyboardManager" "${PODS_ROOT}/Headers/Public/JCore" "${PODS_ROOT}/Headers/Public/JPush" "${PODS_ROOT}/Headers/Public/JSONModel" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/MJRefresh" "${PODS_ROOT}/Headers/Public/MMDrawerController" "${PODS_ROOT}/Headers/Public/MWPhotoBrowser" "${PODS_ROOT}/Headers/Public/Masonry" "${PODS_ROOT}/Headers/Public/PNChart" "${PODS_ROOT}/Headers/Public/SDWebImage" "${PODS_ROOT}/Headers/Public/UICountingLabel" "${PODS_ROOT}/Headers/Public/UITableView+FDTemplateLayoutCell" "${PODS_ROOT}/Headers/Public/UMengAnalytics" "${PODS_ROOT}/Headers/Public/UMengUShare" "${PODS_ROOT}/Headers/Public/WYPopoverController" "${PODS_ROOT}/Headers/Public/WZLBadge" "${PODS_ROOT}/Headers/Public/YXAlertController" "${PODS_ROOT}/Headers/Public/YXKit" "${PODS_ROOT}/Headers/Public/YXPickerView" "${PODS_ROOT}/Headers/Public/iCarousel"
OTHER_LDFLAGS = -framework "QuartzCore"
PODS_BUILD_DIR = $BUILD_DIR
PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment