原创 phpMyAdmin錯誤
1、Authentication method 'caching_sha2_password' is not supported. 這個是mysql版本身份驗證引起的, 解決: 1.查詢user表plugin列的值,是否如下 如果不同請
原创 tomcat配置php環境
將php解壓到tomcat的根目錄下,將文件夾名字改爲php 把php.exe所在的路徑加入到path中。 將php.ini-development 複製一份。改名php.ini 打開php.ini, 去掉 extension_dir =
原创 tomcat配置phpMyAdmin
1.tomcat配置 tomcat默認只支持jsp,要想使其運行php,當然得適當配置。 首先配置conf/web.xml,將關於cgi的內容取消註釋,如下: <servlet> <servlet-name>cgi</ser
原创 NSArray、NSMutableArray相關
NSArray 1.是否包含某個元素 [array containsObject: str] NSMutableArray 1.替換對象 NSMutableArray *newArray = [_regionDetailDataArr
原创 NSData 相關總結
1.NSData 轉 NSDictionary +(NSDictionary*)returnDicWithData:(NSData*)data { NSString *receiveStr = [[NSString alloc]i
原创 實時網絡狀態判斷
AFNetworkReachabilityManager *manager = [AFNetworkReachabilityManager sharedManager]; [manager startMonitoring]
原创 UITableview 相關
1.長按拖拽排序 - (void)longPressRecognizer:(UILongPressGestureRecognizer *)longPress{ //獲取長按的點及cell CGPoint location
原创 UICollectionView 使用總結
1.Cell的大小 -(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLay
原创 json數據判斷
針對(null)這種情況 if(result==nil) 針對<null>的情況 f([result isEqual:[NSNull null]])
原创 NSDictionary、NSMutableDictionary相關
NSDictionary 1.NSDictionary 和 json 字符串互轉 1)NSDictionary轉 json 字符串 + (NSString *)dicToJson:(NSDictionary *)dictionary{
原创 UILabel 相關整理
1.字體設置 titleLabel.font = [UIFont fontWithName:@"PingFangSC-Medium" size:13]; 蘋方提供了六個字重,font-family 定義如下: 蘋方-簡 常規體
原创 iOS開發報錯整理
1.數組 1) -[__NSArrayI removeObjectAtIndex:]: unrecognized selector sent _mutableArr = [arr mutableCopy]
原创 Xcode 錯誤整理
Xcode11 運行 demo 報錯1.xxx is automatically signed, but code build settings --> sighing --> code signing identity 都設爲 iOS
原创 OC 本地化/國際化
1.新建 .string文件,命名爲Localizable 2.添加中文包 3.做映射 英文: "Mine"="Mine"; 中文: "Mine"="我的"; 4.使用 文件名爲Localizable NSLocalizedStrin
原创 添加PCH文件
1、創建PCH文件 Command+N,打開新建文件窗口:iOS->other->PCH file,創建一個pch文件:“工程名-Prefix.pch” 創建pch文件 2、添加PCH文件路徑 將building setting中