Skip to content

Commit

Permalink
更改项目名字
Browse files Browse the repository at this point in the history
更改项目名字
  • Loading branch information
BigShow1949 committed May 5, 2016
0 parents commit 84d12f4
Show file tree
Hide file tree
Showing 2,790 changed files with 164,343 additions and 0 deletions.
1 change: 1 addition & 0 deletions .svn/entries
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12
1 change: 1 addition & 0 deletions .svn/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12
29 changes: 29 additions & 0 deletions .svn/pristine/00/00e2ab27be126e1ffae3638346095bf651581aad.svn-base
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
// MATouchPoi.h
// MapKit_static
//
// Created by songjian on 13-7-17.
// Copyright (c) 2013年 songjian. All rights reserved.
//

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

@interface MATouchPoi : NSObject

/*!
@brief 名称
*/
@property (nonatomic, copy, readonly) NSString *name;

/*!
@brief 经纬度坐标
*/
@property (nonatomic, assign, readonly) CLLocationCoordinate2D coordinate;

/*!
@brief poi的ID
*/
@property (nonatomic, copy, readonly) NSString *uid;

@end
Binary file not shown.
Binary file not shown.
21 changes: 21 additions & 0 deletions .svn/pristine/01/01dfb99af4fded06ee0cb07dc47edfe1e86b4d26.svn-base
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "ic_assessment_black_48dp.png"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
25 changes: 25 additions & 0 deletions .svn/pristine/01/01fe2e7291828ae8d03caec4366fd41adeb24852.svn-base
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// YFItemView.h
// appStoreDemo
//
// Created by WangMengqi on 15/9/1.
// Copyright (c) 2015年 BigShowCompany. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol YFItemViewDelegate <NSObject>

- (void)didTapped:(NSInteger)tag;

@end


@interface YFItemView : UIButton

@property (nonatomic, weak) id <YFItemViewDelegate>delegate;

- (instancetype)initWithNormalImage:(NSString *)normal highlightedImage:(NSString *)highlighted tag:(NSInteger)tag title:(NSString *)title;

@end
49 changes: 49 additions & 0 deletions .svn/pristine/02/020a583720a17f4f39467ddf4016b83d38fa5634.svn-base
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
//
// RZTransitionAction.h
// RZTransitions
//
// Created by Stephen Barnes on 3/13/14.
// Copyright 2014 Raizlabs and other contributors
// http://raizlabs.com/
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

#ifndef RZTransitions_Demo_RZTransitionAction_h
#define RZTransitions_Demo_RZTransitionAction_h

#define kRZTransitionActionCount 5

typedef NS_ENUM (NSInteger, RZTransitionAction) {
RZTransitionAction_Push = (1 << 0),
RZTransitionAction_Pop = (1 << 1),
RZTransitionAction_Present = (1 << 2),
RZTransitionAction_Dismiss = (1 << 3),
RZTransitionAction_Tab = (1 << 4),
RZTransitionAction_PushPop = RZTransitionAction_Push|RZTransitionAction_Pop,
RZTransitionAction_PresentDismiss = RZTransitionAction_Present|RZTransitionAction_Dismiss,
RZTransitionAction_Any = RZTransitionAction_Present|RZTransitionAction_Dismiss|RZTransitionAction_Tab,
};

#endif

// 版权属于原作者
// http://code4app.com (cn) http://code4app.net (en)
// 发布代码于最专业的源码分享网站: Code4App.com
Binary file not shown.
67 changes: 67 additions & 0 deletions .svn/pristine/02/02aa3bf1abc503a8ae50b0bb4c48d1ac1cfae81b.svn-base
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
//
// YFAnimationVC04.m
// appStoreDemo
//
// Created by WangMengqi on 15/9/2.
// Copyright (c) 2015年 BigShowCompany. All rights reserved.
//

#import "YFAnimationVC04.h"

@interface YFAnimationVC04 ()
@property (nonatomic, strong) YFRadialMenu *radialView;
@end

@implementation YFAnimationVC04

- (void)viewDidLoad {
[super viewDidLoad];

self.view.backgroundColor = [UIColor whiteColor];




}

-(void) viewWillAppear:(BOOL)animated {


}

- (void)viewDidAppear:(BOOL)animated {

[super viewDidAppear:animated];

YFRadialMenu *radialView = [[YFRadialMenu alloc] initWithFrame:CGRectMake(self.view.center.x-25, self.view.frame.size.height - 120, 50, 50)];
radialView.delegate = self;
radialView.centerView.backgroundColor = [UIColor grayColor];
[radialView addPopoutView:nil withIndentifier:@"ONE"];
[radialView addPopoutView:nil withIndentifier:@"TWO"];
[radialView addPopoutView:nil withIndentifier:@"THREE"];
[radialView addPopoutView:nil withIndentifier:@"FOUR"];
self.radialView = radialView;

[self.view addSubview:radialView];
[radialView enableDevelopmentMode:self];
}


- (void)viewWillDisappear:(BOOL)animated {

[super viewWillDisappear:animated];

[self.radialView removeFromSuperview];
}

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
}

-(void)radialMenu:(YFRadialMenu *)radialMenu didSelectPopoutWithIndentifier:(NSString *)identifier{
NSLog(@"%@",identifier);


}

@end
127 changes: 127 additions & 0 deletions .svn/pristine/02/02aa82b21076587cf9c583f83be3190a74c685d6.svn-base
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
//
// Case8ViewController.m
// MasonryExample
//
// Created by zorro on 15/12/5.
// Copyright © 2015年 tutuge. All rights reserved.
//

#import "Case8ViewController.h"
#import "Case8Cell.h"
#import "Case8DataEntity.h"

@interface Case8ViewController () <UITableViewDelegate, UITableViewDataSource, Case8CellDelegate>
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (strong, nonatomic) Case8Cell *templateCell;

@property (nonatomic, strong) NSArray *data;
@end

@implementation Case8ViewController

- (void)viewDidLoad {
[super viewDidLoad];

_tableView.delegate = self;
_tableView.dataSource = self;
_tableView.estimatedRowHeight = 80.0f;

// 注册Cell
[_tableView registerClass:[Case8Cell class] forCellReuseIdentifier:NSStringFromClass([Case8Cell class])];
}

- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];

[self generateData];
[_tableView reloadData];
}

#pragma mark - Case8CellDelegate

- (void)case8Cell:(Case8Cell *)cell switchExpandedStateWithIndexPath:(NSIndexPath *)index {
// 改变数据
Case8DataEntity *case8DataEntity = _data[(NSUInteger) index.row];
case8DataEntity.expanded = !case8DataEntity.expanded; // 切换展开还是收回
case8DataEntity.cellHeight = 0; // 重置高度缓存

// **********************************
// 下面两种方法均可实现高度更新,都尝试下吧
// **********************************

// 刷新方法1:只会重新计算高度,不会reload cell,所以只是把原来的cell撑大了而已,还是同一个cell实例
// [_tableView beginUpdates];
// [_tableView endUpdates];

// 刷新方法2:先重新计算高度,然后reload,不是原来的cell实例
[_tableView reloadRowsAtIndexPaths:@[index] withRowAnimation:UITableViewRowAnimationFade];
}

#pragma mark - UITableViewDelegate, UITableViewDataSource

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return _data.count;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
if (!_templateCell) {
_templateCell = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([Case8Cell class])];
}

// 获取对应的数据
Case8DataEntity *dataEntity = _data[(NSUInteger) indexPath.row];

// 判断高度是否已经计算过
if (dataEntity.cellHeight <= 0) {
// 填充数据
[_templateCell setEntity:dataEntity indexPath:[NSIndexPath indexPathForRow:-1 inSection:-1]]; // 设置-1只是为了方便调试,在log里面可以分辨出哪个cell被调用
// 根据当前数据,计算Cell的高度,注意+1
dataEntity.cellHeight = [_templateCell.contentView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize].height + 0.5f;
NSLog(@"Calculate height: %ld", (long) indexPath.row);
} else {
NSLog(@"Get cache %ld", (long) indexPath.row);
}

return dataEntity.cellHeight;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
Case8Cell *cell = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([Case8Cell class]) forIndexPath:indexPath];
[cell setEntity:_data[(NSUInteger) indexPath.row] indexPath:indexPath];
cell.delegate = self;
return cell;
}

#pragma mark - Private methods

// 生成数据
- (void)generateData {
NSMutableArray *tmpData = [NSMutableArray new];

for (int i = 0; i < 20; i++) {
Case8DataEntity *dataEntity = [Case8DataEntity new];
dataEntity.content = [self getText:@"case 8 content. " withRepeat:i * 2 + 10];
[tmpData addObject:dataEntity];
}

_data = tmpData;
}



- (NSString *)getText:(NSString *)text withRepeat:(int)repeat {

Case8ViewController *tesxt = [[Case8ViewController alloc] init];
return [tesxt getText:text withRepeat:repeat];
}
// 重复text字符串repeat次
+ (NSString *)getText:(NSString *)text withRepeat:(int)repeat {
NSMutableString *tmpText = [NSMutableString new];

for (int i = 0; i < repeat; i++) {
[tmpText appendString:text];
}

return tmpText;
}
@end
Binary file not shown.
Binary file not shown.
39 changes: 39 additions & 0 deletions .svn/pristine/02/02f89116fce3bcf1b0434867c474b34c618fb3f9.svn-base
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//
// MAOfflineCity.h
//
// Copyright (c) 2013年 AutoNavi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MAOfflineItem.h"

typedef enum{
MAOfflineCityStatusNone __attribute__((deprecated("use MAOfflineItemStatusNone instead"))) = MAOfflineItemStatusNone, /* 不存在. */
MAOfflineCityStatusCached __attribute__((deprecated("use MAOfflineItemStatusCached instead"))) = MAOfflineItemStatusCached, /* 缓存状态. */
MAOfflineCityStatusInstalled __attribute__((deprecated("use MAOfflineItemStatusInstalled instead"))) = MAOfflineItemStatusInstalled, /* 已安装. */
MAOfflineCityStatusExpired __attribute__((deprecated("use MAOfflineItemStatusExpired instead"))) = MAOfflineItemStatusExpired /* 已过期. */
}MAOfflineCityStatus;

@interface MAOfflineCity : MAOfflineItem

/*!
@brief 城市编码
*/
@property (nonatomic, copy, readonly) NSString *cityCode;

/*!
@brief 城市名称
*/
@property (nonatomic, copy, readonly) NSString *cityName __attribute__ ((deprecated("use name instead")));

/*!
@brief 下载地址
*/
@property (nonatomic, copy, readonly) NSString *urlString __attribute__ ((deprecated("Not supported in future version")));

/*!
@brief 离线数据状态
*/
@property (nonatomic, assign, readonly) MAOfflineCityStatus status __attribute__ ((deprecated("use itemStatus instead")));

@end
Loading

0 comments on commit 84d12f4

Please sign in to comment.