Skip to content

Commit 60a0994

Browse files
committed
处理警告 - 好难受
1 parent 35d0ee3 commit 60a0994

File tree

7 files changed

+10
-29
lines changed

7 files changed

+10
-29
lines changed

Coding_iOS.xcodeproj/project.pbxproj

-12
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@
120120
4E2719C71AB07ED6006AE214 /* dot_line@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E2719C61AB07ED6006AE214 /* dot_line@2x.png */; };
121121
4E2906A21A403B7D008A5B97 /* FileDownloadView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E2906A11A403B7D008A5B97 /* FileDownloadView.m */; };
122122
4E2BF3BC1B957D4F00A5A0A8 /* file_activity_icon_delete_history@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E2BF3BB1B957D4F00A5A0A8 /* file_activity_icon_delete_history@2x.png */; };
123-
4E2BF3C21B95B97A00A5A0A8 /* tweet_btn_comment@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E2BF3BE1B95B97A00A5A0A8 /* tweet_btn_comment@2x.png */; };
124-
4E2BF3C31B95B97A00A5A0A8 /* tweet_btn_like@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E2BF3BF1B95B97A00A5A0A8 /* tweet_btn_like@2x.png */; };
125-
4E2BF3C41B95B97A00A5A0A8 /* tweet_btn_liked@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E2BF3C01B95B97A00A5A0A8 /* tweet_btn_liked@2x.png */; };
126123
4E2BF3CF1B96CDF800A5A0A8 /* share_btn_coding@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E2BF3C71B96CDF800A5A0A8 /* share_btn_coding@2x.png */; };
127124
4E2BF3D01B96CDF800A5A0A8 /* share_btn_copylink@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E2BF3C81B96CDF800A5A0A8 /* share_btn_copylink@2x.png */; };
128125
4E2BF3D11B96CDF800A5A0A8 /* share_btn_evernote@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E2BF3C91B96CDF800A5A0A8 /* share_btn_evernote@2x.png */; };
@@ -1201,9 +1198,6 @@
12011198
4E2906A01A403B7D008A5B97 /* FileDownloadView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileDownloadView.h; sourceTree = "<group>"; };
12021199
4E2906A11A403B7D008A5B97 /* FileDownloadView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FileDownloadView.m; sourceTree = "<group>"; };
12031200
4E2BF3BB1B957D4F00A5A0A8 /* file_activity_icon_delete_history@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "file_activity_icon_delete_history@2x.png"; sourceTree = "<group>"; };
1204-
4E2BF3BE1B95B97A00A5A0A8 /* tweet_btn_comment@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tweet_btn_comment@2x.png"; sourceTree = "<group>"; };
1205-
4E2BF3BF1B95B97A00A5A0A8 /* tweet_btn_like@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tweet_btn_like@2x.png"; sourceTree = "<group>"; };
1206-
4E2BF3C01B95B97A00A5A0A8 /* tweet_btn_liked@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tweet_btn_liked@2x.png"; sourceTree = "<group>"; };
12071201
4E2BF3C71B96CDF800A5A0A8 /* share_btn_coding@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "share_btn_coding@2x.png"; sourceTree = "<group>"; };
12081202
4E2BF3C81B96CDF800A5A0A8 /* share_btn_copylink@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "share_btn_copylink@2x.png"; sourceTree = "<group>"; };
12091203
4E2BF3C91B96CDF800A5A0A8 /* share_btn_evernote@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "share_btn_evernote@2x.png"; sourceTree = "<group>"; };
@@ -2798,9 +2792,6 @@
27982792
4E5D13061C0ECB3400985AEB /* tweet_btn_reward@3x.png */,
27992793
4E5D13071C0ECB3400985AEB /* tweet_btn_rewarded@2x.png */,
28002794
4E5D13081C0ECB3400985AEB /* tweet_btn_rewarded@3x.png */,
2801-
4E2BF3BE1B95B97A00A5A0A8 /* tweet_btn_comment@2x.png */,
2802-
4E2BF3BF1B95B97A00A5A0A8 /* tweet_btn_like@2x.png */,
2803-
4E2BF3C01B95B97A00A5A0A8 /* tweet_btn_liked@2x.png */,
28042795
);
28052796
path = tweet_btn;
28062797
sourceTree = "<group>";
@@ -5204,7 +5195,6 @@
52045195
7E8E59831B6F91C40083CA02 /* bubble_right_play_1@2x.png in Resources */,
52055196
8B3516511B6CE9460049BC45 /* search_tweet_colck@2x.png in Resources */,
52065197
8E97CE6A1A0A3424006F9AD7 /* keyboard_page_unselected@2x.png in Resources */,
5207-
4E2BF3C31B95B97A00A5A0A8 /* tweet_btn_like@2x.png in Resources */,
52085198
4E07D3161A4D3CA6009EDDF2 /* logo_coding@2x.png in Resources */,
52095199
4E96E7D91A1B537E0037C098 /* icon_file_apk@2x.png in Resources */,
52105200
4E996C021ABBF56A00C704F1 /* n_btn_followed_both@2x.png in Resources */,
@@ -5448,7 +5438,6 @@
54485438
4EAE06C11B7B51AF00179F4B /* file_activity_icon_move_file@2x.png in Resources */,
54495439
D0C448081C02DCAC00DC1C4B /* addBtn_Nav@3x.png in Resources */,
54505440
D0C4480C1C02DCAC00DC1C4B /* info_Nav@3x.png in Resources */,
5451-
4E2BF3C21B95B97A00A5A0A8 /* tweet_btn_comment@2x.png in Resources */,
54525441
D0C447E31C02DB8900DC1C4B /* task_selected@3x.png in Resources */,
54535442
8E97CE641A0A3424006F9AD7 /* keyboard_emotion@2x.png in Resources */,
54545443
4EAE06A81B7B1AE100179F4B /* button_file_history@2x.png in Resources */,
@@ -5664,7 +5653,6 @@
56645653
4E8F92DE1B67BE3C00033D8F /* icon_user_monkey_i6@2x.png in Resources */,
56655654
4EAE06A71B7B1AE100179F4B /* button_file_activity@2x.png in Resources */,
56665655
4EAE06C21B7B51AF00179F4B /* file_activity_icon_update_file@2x.png in Resources */,
5667-
4E2BF3C41B95B97A00A5A0A8 /* tweet_btn_liked@2x.png in Resources */,
56685656
8EC911291A027A54009EAE99 /* nav_project_code@2x.png in Resources */,
56695657
4E2DB33D1BA6A1FC002F27C4 /* coding_emoji_gif_08@2x.png in Resources */,
56705658
D09E6ABA1BF829A1009D37F8 /* icon_project_private.png in Resources */,

Coding_iOS/Controllers/AllSearchDisplayVC.h

-7
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
// Copyright © 2015年 Coding. All rights reserved.
77
//
88

9-
@protocol AllSearchDisplayVCdelegate <NSObject>
10-
11-
@optional
12-
13-
@end
14-
159
typedef NS_ENUM(NSUInteger, eSearchType) {
1610
eSearchType_Project=0,
1711
eSearchType_Task,
@@ -29,6 +23,5 @@ typedef NS_ENUM(NSUInteger, eSearchType) {
2923
@interface AllSearchDisplayVC : UISearchDisplayController
3024
@property (nonatomic,weak)UIViewController *parentVC;
3125
@property (nonatomic,assign)eSearchType curSearchType;
32-
@property (assign)id<AllSearchDisplayVCdelegate> delegate;
3326
-(void)reloadDisplayData;
3427
@end

Coding_iOS/Controllers/RootControllers/Project_RootViewController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ - (void)viewDidLoad
130130
searchBar.layer.cornerRadius=15;
131131
searchBar.layer.masksToBounds=TRUE;
132132
[searchBar.layer setBorderWidth:8];
133-
[searchBar.layer setBorderColor:[UIColor whiteColor].CGColor];  //设置边框为白色
133+
[searchBar.layer setBorderColor:[UIColor whiteColor].CGColor];//设置边框为白色
134134
[searchBar sizeToFit];
135135
[searchBar setTintColor:[UIColor whiteColor]];
136136
[searchBar insertBGColor:[UIColor colorWithHexString:@"0xffffff"]];

Coding_iOS/Controllers/SearchViewController.m

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
#import "AllSearchDisplayVC.h"
1313
#import "FileViewController.h"
1414

15-
@interface SearchViewController ()<UITableViewDataSource,UITableViewDelegate,AllSearchDisplayVCdelegate>
15+
@interface SearchViewController ()<UISearchDisplayDelegate>//UITableViewDataSource,UITableViewDelegate,
1616
@property (nonatomic,strong)UIView *searchView;
1717
@property (strong, nonatomic) NSMutableArray *statusList;
1818
@property (strong, nonatomic) CategorySearchBar *mySearchBar;
1919
@property (strong, nonatomic) AllSearchDisplayVC *searchDisplayVC;
2020
@property (nonatomic,strong) UITableView *tableview;
2121
@property (nonatomic,strong) NSMutableArray *dataSource;
22-
@property (nonatomic,assign) int selectIndex;
22+
@property (nonatomic,assign) NSInteger selectIndex;
2323
@property (nonatomic,assign) BOOL firstLoad;
2424
@end
2525

@@ -75,7 +75,7 @@ -(void)buildUI{
7575
searchBar.layer.cornerRadius=15;
7676
searchBar.layer.masksToBounds=TRUE;
7777
[searchBar.layer setBorderWidth:8];
78-
[searchBar.layer setBorderColor:[UIColor whiteColor].CGColor];  //设置边框为白色
78+
[searchBar.layer setBorderColor:[UIColor whiteColor].CGColor];//设置边框为白色
7979
[searchBar sizeToFit];
8080
[searchBar setTintColor:[UIColor whiteColor]];
8181
[searchBar insertBGColor:[UIColor colorWithHexString:@"0xffffff"]];
@@ -126,7 +126,7 @@ -(void)buildUI{
126126
searchVC.searchBar.layer.cornerRadius=15;
127127
searchVC.searchBar.layer.masksToBounds=TRUE;
128128
[searchVC.searchBar.layer setBorderWidth:8];
129-
[searchVC.searchBar.layer setBorderColor:[UIColor whiteColor].CGColor];  //设置边框为白色
129+
[searchVC.searchBar.layer setBorderColor:[UIColor whiteColor].CGColor];//设置边框为白色
130130

131131
//placeholder 要在此处设置,不然报错
132132
[searchVC.searchBar setPlaceholder:@"项目/任务/讨论/冒泡等"];
@@ -200,7 +200,7 @@ -(void)popToMainVCAction
200200
}
201201

202202
- (void)menuItemClicked:(KxMenuItem *)item{
203-
int nowSelectIndex = [_statusList indexOfObject:item.title];
203+
NSInteger nowSelectIndex = [_statusList indexOfObject:item.title];
204204
if (nowSelectIndex == NSNotFound || nowSelectIndex == _selectIndex) {
205205
return;
206206
}

Coding_iOS/Images/.DS_Store

0 Bytes
Binary file not shown.

Coding_iOS/Vendor/KxMenu/KxMenu.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ - (UIView *) mkContentView
449449
const CGFloat titleX = kMarginX * 2 + maxImageWidth + titleImagePadding;
450450
const CGFloat titleWidth = maxItemWidth - titleX - kMarginX * 2;
451451

452-
UIImage *selectedImage = [KxMenuView selectedImage:(CGSize){maxItemWidth, maxItemHeight + 2}];
452+
// UIImage *selectedImage = [KxMenuView selectedImage:(CGSize){maxItemWidth, maxItemHeight + 2}];
453453
// UIImage *gradientLine = [KxMenuView gradientLine: (CGSize){maxItemWidth - kMarginX * 4, 0.5}];
454-
UIImage *gradientLine = [KxMenuView gradientLine: (CGSize){maxItemWidth, 0.3}];
454+
// UIImage *gradientLine = [KxMenuView gradientLine: (CGSize){maxItemWidth, 0.3}];
455455

456456
UIView *contentView = [[UIView alloc] initWithFrame:CGRectZero];
457457
contentView.autoresizingMask = UIViewAutoresizingNone;

Coding_iOS/Views/PopFliterMenu.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ - (id)initWithFrame:(CGRect)frame items:(NSArray *)items {
2727
self = [super initWithFrame:frame];
2828
if (self) {
2929
// Initialization code
30-
self.items = @[@{@"all":@""},@{@"created":@""},@{@"joined":@""},@{@"watched":@""},@{@"stared":@""}];
30+
self.items = @[@{@"all":@""},@{@"created":@""},@{@"joined":@""},@{@"watched":@""},@{@"stared":@""}].mutableCopy;
3131
self.pCount=[ProjectCount new];
3232
self.showStatus=FALSE;
3333
[self setup];
@@ -155,7 +155,7 @@ - (NSString*)formatTitleStr:(NSDictionary*)aDic
155155
//更新数据源
156156
-(void)updateDateSource:(ProjectCount*)pCount
157157
{
158-
_items = @[@{@"all":[pCount.all stringValue]},@{@"created":[pCount.created stringValue]},@{@"joined":[pCount.joined stringValue]},@{@"watched":[pCount.watched stringValue]},@{@"stared":[pCount.stared stringValue]}];
158+
_items = @[@{@"all":[pCount.all stringValue]},@{@"created":[pCount.created stringValue]},@{@"joined":[pCount.joined stringValue]},@{@"watched":[pCount.watched stringValue]},@{@"stared":[pCount.stared stringValue]}].mutableCopy;
159159
}
160160

161161

0 commit comments

Comments
 (0)