-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1、appStore要求64位 2、去掉版本更新按钮
- Loading branch information
Showing
1,547 changed files
with
144,396 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// AnliViewCell.h | ||
// CustomNewProject | ||
// | ||
// Created by lichaowei on 14/12/1. | ||
// Copyright (c) 2014年 FBLIFE. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface AnliViewCell : UITableViewCell | ||
@property (strong, nonatomic) IBOutlet UIImageView *bigImageView; | ||
@property (strong, nonatomic) IBOutlet UILabel *aTitleLabel; | ||
@property (strong, nonatomic) IBOutlet UILabel *nameLabel; | ||
@property (strong, nonatomic) IBOutlet UIImageView *smallImageView; | ||
|
||
- (void)setCellWithModel:(id)aModel; | ||
@property (strong, nonatomic) IBOutlet UIImageView *quanImageView; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
// | ||
// AnliViewCell.m | ||
// CustomNewProject | ||
// | ||
// Created by lichaowei on 14/12/1. | ||
// Copyright (c) 2014年 FBLIFE. All rights reserved. | ||
// | ||
|
||
#import "AnliViewCell.h" | ||
#import "AnliModel.h" | ||
|
||
@implementation AnliViewCell | ||
|
||
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier | ||
{ | ||
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; | ||
if (self) { | ||
|
||
|
||
} | ||
return self; | ||
} | ||
|
||
//根据实际宽度等比例调整高度 | ||
- (CGFloat)height:(CGFloat)oldHeight | ||
{ | ||
return 0; | ||
} | ||
|
||
- (void)awakeFromNib { | ||
// Initialization code | ||
|
||
self.smallImageView.layer.cornerRadius = _smallImageView.width / 2.f; | ||
|
||
} | ||
|
||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated { | ||
[super setSelected:selected animated:animated]; | ||
|
||
// Configure the view for the selected state | ||
} | ||
|
||
|
||
|
||
- (void)setCellWithModel:(AnliModel *)aModel | ||
{ | ||
[self.bigImageView sd_setImageWithURL:[NSURL URLWithString:aModel.pichead] placeholderImage:nil]; | ||
|
||
// NSLog(@"lll %@",aModel.pichead); | ||
|
||
self.aTitleLabel.text = aModel.title; | ||
self.nameLabel.text = aModel.sname; | ||
[self.smallImageView sd_setImageWithURL:[NSURL URLWithString:aModel.spichead] placeholderImage:PERSONAL_DEFAULTS_IMAGE]; | ||
|
||
|
||
self.smallImageView.layer.masksToBounds = YES; | ||
self.smallImageView.layer.cornerRadius = 30 / 2.f; | ||
|
||
self.quanImageView.layer.masksToBounds = YES; | ||
self.quanImageView.layer.cornerRadius = 34 / 2.f; | ||
|
||
self.quanImageView.center = self.smallImageView.center; | ||
|
||
// self.smallImageView.layer.borderWidth = 2.f; | ||
// self.smallImageView.layer.borderColor = [UIColor colorWithWhite:1.0 alpha:0.4].CGColor; | ||
|
||
self.nameLabel.layer.shadowColor = [UIColor blackColor].CGColor; | ||
self.nameLabel.layer.shadowOffset = CGSizeMake(0,1); | ||
self.nameLabel.layer.shadowRadius = 0.5; | ||
self.nameLabel.layer.shadowOpacity = 0.8; | ||
|
||
self.aTitleLabel.layer.shadowColor = [UIColor blackColor].CGColor; | ||
self.aTitleLabel.layer.shadowOffset = CGSizeMake(0,1); | ||
self.aTitleLabel.layer.shadowRadius = 0.5; | ||
self.aTitleLabel.layer.shadowOpacity = 0.8; | ||
|
||
|
||
//layer.cornerRadius | ||
|
||
|
||
} | ||
|
||
@end |
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
Controls/AllScreeningControls/ScreeningControllers/ScreeningViewController.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// ScreeningViewController.h | ||
// CustomNewProject | ||
// | ||
// Created by soulnear on 14-12-2. | ||
// Copyright (c) 2014年 FBLIFE. All rights reserved. | ||
// | ||
/* | ||
*筛选界面 | ||
*/ | ||
#import <UIKit/UIKit.h> | ||
#import "SliderBBSTitleView.h" | ||
|
||
@interface ScreeningViewController : MyViewController | ||
{ | ||
|
||
} | ||
|
||
@property(nonatomic,strong)SliderBBSTitleView * seg_view; | ||
|
||
|
||
|
||
@end |
103 changes: 103 additions & 0 deletions
103
Controls/AllScreeningControls/ScreeningControllers/ScreeningViewController.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
// | ||
// ScreeningViewController.m | ||
// CustomNewProject | ||
// | ||
// Created by soulnear on 14-12-2. | ||
// Copyright (c) 2014年 FBLIFE. All rights reserved. | ||
// | ||
|
||
#import "ScreeningViewController.h" | ||
#import "ScreeningCarView.h" | ||
#import "ScreeningAreaView.h" | ||
|
||
@interface ScreeningViewController ()<UIScrollViewDelegate> | ||
{ | ||
UIScrollView * myScrollView; | ||
} | ||
|
||
@end | ||
|
||
@implementation ScreeningViewController | ||
|
||
- (void)viewDidLoad | ||
{ | ||
[super viewDidLoad]; | ||
self.view.backgroundColor = [UIColor whiteColor]; | ||
[self setMyViewControllerLeftButtonType:MyViewControllerLeftbuttonTypeBack WithRightButtonType:MyViewControllerRightbuttonTypeNull]; | ||
UIBarButtonItem * right_bar = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:self action:nil]; | ||
self.navigationItem.rightBarButtonItem = right_bar; | ||
|
||
myScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0,0,DEVICE_WIDTH+20,DEVICE_HEIGHT-64)]; | ||
myScrollView.pagingEnabled = YES; | ||
myScrollView.delegate = self; | ||
myScrollView.bounces = NO; | ||
myScrollView.backgroundColor=[UIColor grayColor]; | ||
myScrollView.contentSize = CGSizeMake((DEVICE_WIDTH+20)*2,0); | ||
[self.view addSubview:myScrollView]; | ||
|
||
///筛选车型 | ||
ScreeningCarView * carView = [[ScreeningCarView alloc] initWithFrame:CGRectMake(0,0,DEVICE_WIDTH,myScrollView.frame.size.height)]; | ||
carView.clipsToBounds = YES; | ||
[myScrollView addSubview:carView]; | ||
|
||
///地区筛选 | ||
ScreeningAreaView * areaView = [[ScreeningAreaView alloc] initWithFrame:CGRectMake(DEVICE_WIDTH+20,0,DEVICE_WIDTH,myScrollView.frame.size.height)]; | ||
[myScrollView addSubview:areaView]; | ||
|
||
|
||
///加载顶部选择 | ||
__weak typeof(self)bself = self; | ||
_seg_view = [[SliderBBSTitleView alloc] initWithFrame:CGRectMake(0,0,DEVICE_WIDTH-80,44)]; | ||
[_seg_view setAllViewsWith:[NSArray arrayWithObjects:@"按车型筛选",@"按地区筛选",nil] withBlock:^(int index) { | ||
[bself selectedForumWith:index]; | ||
}]; | ||
self.navigationItem.titleView = _seg_view; | ||
|
||
} | ||
|
||
|
||
-(void)viewWillAppear:(BOOL)animated | ||
{ | ||
[super viewWillAppear:animated]; | ||
|
||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(chooseCarType:) name:@"ChooseCarTypeNotification" object:nil]; | ||
} | ||
|
||
-(void)viewWillDisappear:(BOOL)animated | ||
{ | ||
[super viewWillDisappear:animated]; | ||
[[NSNotificationCenter defaultCenter] removeObserver:self name:@"ChooseCarTypeNotification" object:nil]; | ||
} | ||
|
||
#pragma mark - UIScrollViewDelegate | ||
//滚动视图释放滚动 | ||
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView | ||
{ | ||
CGFloat pageWidth = scrollView.frame.size.width; | ||
// 根据当前的x坐标和页宽度计算出当前页数 | ||
int current_page = floor((scrollView.contentOffset.x - pageWidth / 2) / pageWidth) + 1; | ||
[_seg_view MyButtonStateWithIndex:current_page]; | ||
[self selectedForumWith:current_page]; | ||
} | ||
|
||
|
||
#pragma mark - 左右切换 | ||
-(void)selectedForumWith:(int)index | ||
{ | ||
[myScrollView setContentOffset:CGPointMake(myScrollView.frame.size.width*index,0)animated:YES]; | ||
} | ||
|
||
#pragma mark - 选中车型通知 | ||
-(void)chooseCarType:(NSNotification *)notification | ||
{ | ||
NSLog(@"notificaiton ------ %@ ----- %@",notification.object,notification); | ||
|
||
|
||
} | ||
|
||
|
||
- (void)didReceiveMemoryWarning { | ||
[super didReceiveMemoryWarning]; | ||
} | ||
|
||
@end |
17 changes: 17 additions & 0 deletions
17
Controls/AllScreeningControls/ScreeningModels/BrandModel.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// BrandModel.h | ||
// CustomNewProject | ||
// | ||
// Created by soulnear on 14-12-4. | ||
// Copyright (c) 2014年 FBLIFE. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface BrandModel : NSObject | ||
|
||
@property(nonatomic,strong)NSString * car_name; | ||
@property(nonatomic,strong)NSString * car_id; | ||
@property(nonatomic,strong)NSString * car_fwords; | ||
@property(nonatomic,strong)NSString * car_words; | ||
@end |
13 changes: 13 additions & 0 deletions
13
Controls/AllScreeningControls/ScreeningModels/BrandModel.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// BrandModel.m | ||
// CustomNewProject | ||
// | ||
// Created by soulnear on 14-12-4. | ||
// Copyright (c) 2014年 FBLIFE. All rights reserved. | ||
// | ||
|
||
#import "BrandModel.h" | ||
|
||
@implementation BrandModel | ||
|
||
@end |
16 changes: 16 additions & 0 deletions
16
Controls/AllScreeningControls/ScreeningModels/ScreeningCarModel.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// ScreeningCarModel.h | ||
// CustomNewProject | ||
// | ||
// Created by soulnear on 14-12-2. | ||
// Copyright (c) 2014年 FBLIFE. All rights reserved. | ||
// | ||
/* | ||
*筛选车型数据 | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface ScreeningCarModel : NSObject | ||
|
||
@end |
13 changes: 13 additions & 0 deletions
13
Controls/AllScreeningControls/ScreeningModels/ScreeningCarModel.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// ScreeningCarModel.m | ||
// CustomNewProject | ||
// | ||
// Created by soulnear on 14-12-2. | ||
// Copyright (c) 2014年 FBLIFE. All rights reserved. | ||
// | ||
|
||
#import "ScreeningCarModel.h" | ||
|
||
@implementation ScreeningCarModel | ||
|
||
@end |
23 changes: 23 additions & 0 deletions
23
Controls/AllScreeningControls/ScreeningViews/ScreeningAreaView.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// ScreeningAreaView.h | ||
// CustomNewProject | ||
// | ||
// Created by soulnear on 14-12-5. | ||
// Copyright (c) 2014年 FBLIFE. All rights reserved. | ||
// | ||
/* | ||
*筛选地区 | ||
*/ | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface ScreeningAreaView : UIView<UITableViewDataSource,UITableViewDelegate> | ||
{ | ||
|
||
} | ||
|
||
|
||
@property(nonatomic,strong)UITableView * myTableView; | ||
|
||
|
||
@end |
73 changes: 73 additions & 0 deletions
73
Controls/AllScreeningControls/ScreeningViews/ScreeningAreaView.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
// | ||
// ScreeningAreaView.m | ||
// CustomNewProject | ||
// | ||
// Created by soulnear on 14-12-5. | ||
// Copyright (c) 2014年 FBLIFE. All rights reserved. | ||
// | ||
|
||
#import "ScreeningAreaView.h" | ||
|
||
@implementation ScreeningAreaView | ||
|
||
|
||
-(id)initWithFrame:(CGRect)frame | ||
{ | ||
self = [super initWithFrame:frame]; | ||
if (self) { | ||
[self setup]; | ||
} | ||
return self; | ||
} | ||
|
||
-(void)setup | ||
{ | ||
_myTableView = [[UITableView alloc] initWithFrame:self.bounds style:UITableViewStylePlain]; | ||
_myTableView.delegate = self; | ||
_myTableView.dataSource = self; | ||
[self addSubview:_myTableView]; | ||
} | ||
|
||
|
||
#pragma mark - UITableView Methods | ||
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section | ||
{ | ||
return 10; | ||
} | ||
|
||
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section | ||
{ | ||
return 20; | ||
} | ||
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath | ||
{ | ||
return 38; | ||
} | ||
|
||
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section | ||
{ | ||
UILabel * label = [[UILabel alloc] initWithFrame:CGRectMake(0,0,DEVICE_WIDTH,20)]; | ||
label.backgroundColor = RGBCOLOR(239,237,237); | ||
label.font = [UIFont boldSystemFontOfSize:12]; | ||
label.textColor = RGBCOLOR(21,21,21); | ||
label.text = @" A"; | ||
return label; | ||
} | ||
|
||
|
||
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | ||
{ | ||
static NSString * identifier = @"identifier"; | ||
UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:identifier]; | ||
if (cell == nil) { | ||
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]; | ||
} | ||
|
||
cell.textLabel.text = @"安徽"; | ||
cell.textLabel.font = [UIFont systemFontOfSize:15]; | ||
cell.textLabel.textColor = RGBCOLOR(12,12,12); | ||
|
||
return cell; | ||
} | ||
|
||
@end |
Oops, something went wrong.