我有一个开发窗格,我使用本地连接到我的应用程序:path => '~/Projects/Swift/pod'.当我在该开发窗格中的应用程序代码中进行更改时,构建后不会包含此更改.这就像我构建缓存代码,而不是我的代码更改.
对于包含代码更改到构建我必须运行命令"清理构建文件夹",但在该构建需要很长时间后,持续10分钟,这不是很有效率.
从字面上看,我对一行代码发表评论并等待10分钟才能看到变化.
问题是什么?
我试图在任何更改后运行"pod install/pod update",但它没有任何效果.
我有这样的问题:隐藏UISearchBar取消按钮
我已经子类UISearchController和UISearchBar,并重写方法layoutSubviews在UISearchBar.
如何在我的自searchBar定义UISearchBar中使用自定义覆盖属性UISearchController?
更新1
使用自定义实现属性UISearchBar我在MyUISearchController:
@property(nonatomic, strong, readonly) UISearchBar *searchBar;
Run Code Online (Sandbox Code Playgroud)
和
@synthesize searchBar=_searchBar;
- (UISearchBar *)searchBar {
return [MySearchBar new];
}
Run Code Online (Sandbox Code Playgroud)
但无论如何都UISearchController使用默认searchBar..
更新
在h档案中:
@interface MySearchController : UISearchController <UITableViewDelegate, UITableViewDataSource>
Run Code Online (Sandbox Code Playgroud)
在m档案中:
@interface MySearchController () <UISearchDisplayDelegate, UISearchControllerDelegate,
UISearchBarDelegate, UISearchResultsUpdating, SearchAutocompleteLoader>
@property UISearchController *searchController;
@property (strong, nonatomic) UITableView *searchResultTable;
@property UIView *viewForSearchBar;
@property (nonatomic) NSInteger …Run Code Online (Sandbox Code Playgroud) 要禁用所有文件中的警告,我正在使用以下预编译器标头:
#ifndef PrefixHeader_pch
#define PrefixHeader_pch
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
#pragma clang diagnostic ignored "-Wmacro-redefined"
#pragma clang diagnostic ignored "-Wobjc-designated-initializers"
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#pragma clang diagnostic ignored "-Wprotocol"
#pragma clang diagnostic ignored "-Wmissing-selector-name"
#endif /* PrefixHeader_pch */
Run Code Online (Sandbox Code Playgroud)
我需要禁用位于特定文件夹中的文件的警告,例如$(SRCROOT)/wrapper/. 我怎样才能做到这一点?
有一种方法:
- (void)doSmth:(NSString *__strong*)str {
NSLog(@"%@", *str);
}
Run Code Online (Sandbox Code Playgroud)
__strong遵循方法参数的类是什么意思?为什么有两个星号?