Skip to content

Commit

Permalink
传感器,多级菜单显示
Browse files Browse the repository at this point in the history
  • Loading branch information
Konan authored and Konan committed Oct 21, 2015
1 parent 8ca2c4d commit 9c45235
Show file tree
Hide file tree
Showing 178 changed files with 9,664 additions and 0 deletions.
295 changes: 295 additions & 0 deletions ParseStarterProject/ParseStarterProject/Home/Utility/RegexKitLite.h

Large diffs are not rendered by default.

2,636 changes: 2,636 additions & 0 deletions ParseStarterProject/ParseStarterProject/Home/Utility/RegexKitLite.m

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// MapViewController.h
// ParseStarterProject
//
// Created by Konan on 15/10/16.
//
//

#import <UIKit/UIKit.h>

@interface MapViewController : UIViewController

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// MapViewController.m
// ParseStarterProject
//
// Created by Konan on 15/10/16.
//
//

#import "MapViewController.h"

@implementation MapViewController

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// ChuanGanQiController.h
// ParseStarterProject
//
// Created by Konan on 15/10/16.
//
//

#import <UIKit/UIKit.h>

@interface ChuanGanQiController : UIViewController

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// ChuanGanQiController.m
// ParseStarterProject
//
// Created by Konan on 15/10/16.
//
//

#import "ChuanGanQiController.h"

@implementation ChuanGanQiController

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// DuoJiCaiDanController.h
// ParseStarterProject
//
// Created by Konan on 15/10/20.
//
//

#import <UIKit/UIKit.h>

@interface DuoJiCaiDanController : UIViewController

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// DuoJiCaiDanController.m
// ParseStarterProject
//
// Created by Konan on 15/10/20.
//
//

#import "DuoJiCaiDanController.h"

@implementation DuoJiCaiDanController

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// DuoJiMutilViewController.h
// ParseStarterProject
//
// Created by Konan on 15/10/20.
//
//

#import <UIKit/UIKit.h>

@interface DuoJiMutilViewController : UIViewController

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// DuoJiMutilViewController.m
// ParseStarterProject
//
// Created by Konan on 15/10/20.
//
//

#import "DuoJiMutilViewController.h"

@implementation DuoJiMutilViewController

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// DuoJiSubViewController.h
// ParseStarterProject
//
// Created by Konan on 15/10/20.
//
//

#import <UIKit/UIKit.h>

@interface DuoJiSubViewController : UIViewController

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// DuoJiSubViewController.m
// ParseStarterProject
//
// Created by Konan on 15/10/20.
//
//

#import "DuoJiSubViewController.h"

@implementation DuoJiSubViewController

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// MenuTableViewController.h
// ParseStarterProject
//
// Created by Konan on 15/10/16.
//
//

#import <UIKit/UIKit.h>

@interface MenuTableViewController : UITableViewController

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// MenuTableViewController.m
// ParseStarterProject
//
// Created by Konan on 15/10/16.
//
//

#import "MenuTableViewController.h"

@implementation MenuTableViewController

@end
Binary file added ParseStarterProject/Resources/Image/yuan.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// BaseComponent.h
// BaseComponent
//
// Created by baidu on 14-3-17.
// Copyright (c) 2014年 baidu. All rights reserved.
//

#import "BMKGeneralDelegate.h"
#import "BMKMapManager.h"
#import "BMKTypes.h"
#import "BMKUserLocation.h"
#import "BMKVersion.h"
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// BMKGeneralDelegate.h
// BMapKit
//
// Copyright 2011 Baidu Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

///通知Delegate
@protocol BMKGeneralDelegate <NSObject>
@optional
/**
*返回网络错误
*@param iError 错误号
*/
- (void)onGetNetworkState:(int)iError;

/**
*返回授权验证错误
*@param iError 错误号 : 为0时验证通过,具体参加BMKPermissionCheckResultCode
*/
- (void)onGetPermissionState:(int)iError;
@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* BMKMapManager.h
* BMapKit
*
* Copyright 2011 Baidu Inc. All rights reserved.
*
*/

#import "BMKGeneralDelegate.h"
#import <UIKit/UIKit.h>

enum EN_PERMISSION_STATUS
{
E_PERMISSION_OK = 0, // 授权验证通过
E_PERMISSION_SERVER_ERROR = -200, //服务端数据错误,无法解析服务端返回数据
E_PERMISSION_NETWORK_ERROR = -300, //无法建立与服务端的连接

};

///主引擎类
@interface BMKMapManager : NSObject

/**
*启动引擎
*@param key 申请的有效key
*@param delegate
*/
-(BOOL)start:(NSString*)key generalDelegate:(id<BMKGeneralDelegate>)delegate;

/**
*获取所有在线服务消耗的发送流量,单位:字节
*/
-(int)getTotalSendFlaxLength;

/**
*获取所有在线服务消耗的接收流量,单位:字节
*/
-(int)getTotalRecvFlaxLength;

/**
*停止引擎
*/
-(BOOL)stop;



@end


Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
//
// BMKType.h
// MapPlatform
//
// Created by BaiduMapAPI on 13-3-26.
// Copyright (c) 2013年 baidu. All rights reserved.
//

#import <CoreGraphics/CoreGraphics.h>
#import <CoreLocation/CoreLocation.h>

#import <UIKit/UIKit.h>
typedef enum
{
BMK_COORDTYPE_GPS = 0, ///GPS设备采集的原始GPS坐标
BMK_COORDTYPE_COMMON, ///google地图、soso地图、aliyun地图、mapabc地图和amap地图所用坐标
} BMK_COORD_TYPE;
enum {
BMKMapTypeStandard = 1, ///< 标准地图
BMKMapTypeSatellite = 2, ///< 卫星地图
};
typedef NSUInteger BMKMapType;

typedef enum {
BMKErrorOk = 0, ///< 正确,无错误
BMKErrorConnect = 2, ///< 网络连接错误
BMKErrorData = 3, ///< 数据错误
BMKErrorRouteAddr = 4, ///<起点或终点选择(有歧义)
BMKErrorResultNotFound = 100, ///< 搜索结果未找到
BMKErrorLocationFailed = 200, ///< 定位失败
BMKErrorPermissionCheckFailure = 300, ///< 百度地图API授权Key验证失败
BMKErrorParse = 310 ///< 数据解析失败
}BMKErrorCode;
//鉴权结果状态码
typedef enum {
E_PERMISSIONCHECK_CONNECT_ERROR = -300,//链接服务器错误
E_PERMISSIONCHECK_DATA_ERROR = -200,//服务返回数据异常
E_PERMISSIONCHECK_OK = 0, // 授权验证通过
E_PERMISSIONCHECK_KEY_ERROR = 101, //ak不存在
E_PERMISSIONCHECK_MCODE_ERROR = 102, //mcode签名值不正确
E_PERMISSIONCHECK_UID_KEY_ERROR = 200, // APP不存在,AK有误请检查再重试
E_PERMISSIONCHECK_KEY_FORBIDEN= 201, // APP被用户自己禁用,请在控制台解禁
/*
*更多鉴权状态码请参考:
*http://developer.baidu.com/map/index.php?title=lbscloud/api/appendix
*/
}BMKPermissionCheckResultCode;
//检索结果状态码
typedef enum{
BMK_SEARCH_NO_ERROR = 0,///<检索结果正常返回
BMK_SEARCH_AMBIGUOUS_KEYWORD,///<检索词有岐义
BMK_SEARCH_AMBIGUOUS_ROURE_ADDR,///<检索地址有岐义
BMK_SEARCH_NOT_SUPPORT_BUS,///<该城市不支持公交搜索
BMK_SEARCH_NOT_SUPPORT_BUS_2CITY,///<不支持跨城市公交
BMK_SEARCH_RESULT_NOT_FOUND,///<没有找到检索结果
BMK_SEARCH_ST_EN_TOO_NEAR,///<起终点太近
BMK_SEARCH_KEY_ERROR,///<key错误
BMK_SEARCH_NETWOKR_ERROR,///网络连接错误
BMK_SEARCH_NETWOKR_TIMEOUT,///网络连接超时
BMK_SEARCH_PERMISSION_UNFINISHED,///还未完成鉴权,请在鉴权通过后重试
}BMKSearchErrorCode;

//调起百度地图结果状态码
typedef enum{
BMK_OPEN_NO_ERROR = 0,///<正常
BMK_OPEN_WEB_MAP,///打开的是web地图
BMK_OPEN_OPTION_NULL,///<传入的参数为空
BMK_OPEN_NOT_SUPPORT,///<没有安装百度地图,或者版本太低
BMK_OPEN_POI_DETAIL_UID_NULL,///<poi详情 poiUid为空
BMK_OPEN_POI_NEARBY_KEYWORD_NULL,///<poi周边 keyWord为空
BMK_OPEN_ROUTE_START_ERROR,///<路线起点有误
BMK_OPEN_ROUTE_END_ERROR,///<路线终点有误
}BMKOpenErrorCode;

///表示一个经纬度范围
typedef struct {
CLLocationDegrees latitudeDelta; ///< 纬度范围
CLLocationDegrees longitudeDelta; ///< 经度范围
} BMKCoordinateSpan;

///表示一个经纬度区域
typedef struct {
CLLocationCoordinate2D northEast; ///< 东北角点经纬度坐标
CLLocationCoordinate2D southWest; ///< 西南角点经纬度坐标
} BMKCoordinateBounds;

///表示一个经纬度区域
typedef struct {
CLLocationCoordinate2D center; ///< 中心点经纬度坐标
BMKCoordinateSpan span; ///< 经纬度范围
} BMKCoordinateRegion;

///表示一个经纬度坐标点
typedef struct {
int latitudeE6; ///< 纬度,乘以1e6之后的值
int longitudeE6; ///< 经度,乘以1e6之后的值
} BMKGeoPoint;

///地理坐标点,用直角地理坐标表示
typedef struct {
double x; ///< 横坐标
double y; ///< 纵坐标
} BMKMapPoint;

///矩形大小,用直角地理坐标表示
typedef struct {
double width; ///< 宽度
double height; ///< 高度
} BMKMapSize;

///矩形,用直角地理坐标表示
typedef struct {
BMKMapPoint origin; ///< 屏幕左上点对应的直角地理坐标
BMKMapSize size; ///< 坐标范围
} BMKMapRect;

///地图缩放比例
typedef CGFloat BMKZoomScale;

/// 经过投影后的世界范围大小,与经纬度(-85,180)投影后的坐标值对应
UIKIT_EXTERN const BMKMapSize BMKMapSizeWorld;
/// 经过投影后的世界矩形范围
UIKIT_EXTERN const BMKMapRect BMKMapRectWorld;
/// 空的直角坐标矩形
UIKIT_EXTERN const BMKMapRect BMKMapRectNull;

///线路检索节点信息,一个路线检索节点可以通过经纬度坐标或城市名加地名确定
@interface BMKPlanNode : NSObject{
NSString* _cityName;
NSString* _name;
CLLocationCoordinate2D _pt;
}

///节点所在城市
@property (nonatomic, strong) NSString* cityName;
///节点名称
@property (nonatomic, strong) NSString* name;
///节点坐标
@property (nonatomic) CLLocationCoordinate2D pt;
@end


Loading

0 comments on commit 9c45235

Please sign in to comment.