原创 iOS裏常見的幾種信息加密步驟簡單總結

iOS裏常見的幾種信息加密方法簡單總結 一.MD5加密 MD5加密是最常用的加密方法之一,是從一段字符串中通過相應特徵生成一段32位的數字字母混合碼。 MD5主要特點是 不可逆,相同數據的MD5值肯定一樣,不同數據的MD5值不一

原创 iOS移動支付

iOS 移動支付之種類 iOS 端的移動支付,大概包括:支付寶支付、微信支付、銀聯卡支付、paypal支付,現在又多出一個Apple pay支付; 如何集成這些種類的支付方式 談及如何集成這些支付方式,面對各種支付方式的SDK以

原创 pod 命令-bash: --: command not found

pod 命令-bash: --: command not found 升級完系統執行 pod update 或者 pod install命令的時候出現: -bash: --: command not found ,彆着急是因爲你的po

原创 AVPlayerViewController iOS視頻錄製,壓縮,上傳,預覽。

#import <AVKit/AVKit.h> #import <AVFoundation/AVFoundation.h> AVPlayerViewControllerDelegate { AVPlayerViewCont

原创 UITableView側滑多個按鈕

(NSArray )tableView:(UITableView )tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath { // 添加一個刪除按鈕 UITa

原创 修改 Created by /Copyright 作者名稱

設置作者名 系統偏好設置-》用戶和羣組 -》選擇當前用戶-》右下角解鎖-》右擊當前用戶-》高級選項-》修改你的帳戶名稱和全名-》保存

原创 Date Formate Patterns相關整理

//實例化一個NSDateFormatter對象 NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; //設定時間格式,這裏可以設置成自己需要的格式 [date

原创 uiimageView 的圖片拉伸問題的解決辦法

設置 UIImageView 的contentMode屬性,根據自己的需要選擇下面 UIViewContentModeScaleToFill, UIViewContentModeScaleAspectFit, //

原创 Compiling IB documents for earlier than iOS 7 is no longer supported

升級到Xcode Xib報錯問題的解決 在升級到Xcode9 遇到以下錯誤:Compiling IB documents for earlier than iOS 7 is no longer supported 將Builds

原创 Verify the Developer App certificate for your account is trusted on your device

Could not launch “xxx” Verify the Developer App certificate for your account is trusted on your device. Open Settings

原创 iOS調用系統相冊顯示英文

在 Info.plist 中 Localized resources can be mixed 設爲 YES,意思是允許應用獲取框架庫內語言。 Localization native development region 設爲 Chi

原创 標籤,關鍵字,字數與格式限制 “,”分隔

//yes爲格式不正確 -(BOOL) keywordYesOrNo { //去掉空格 jianjieTextField.text = [jianjieTextField.text stringByReplacingOcc

原创 使用NSMutableAttributedString 實現富文本

NSString *priceStr = [NSString stringWithFormat:@"合計金額%ld元",(long)price]; NSMutableAttributedString *AttributedStr

原创 ios中的字符串等的拼接+for循環實例

NSString *titleText; NSMutableArray *array = [[NSMutableArray alloc] init]; NSString * Text = [NSString