原创 UI圖層層級,學IOS開發必備
點擊紅圈的圖標 點贊 收藏 分享 文章舉報 向日葵xrk 發佈了32 篇原創文章 · 獲贊 6 · 訪問量 2萬+ 私信
原创 導航欄返回按鈕替換圖片去掉文字
- (instancetype)initWithRootViewController:(UIViewController *)rootViewController { self = [super initWithRootView
原创 super
[super viewDidLoad]; // 調用父類(super)的方法 點贊 2 收藏 分享 文章舉報 向日葵xrk 發佈了32 篇原創文章 · 獲贊 6 · 訪問量 2萬
原创 show show detail present modally present as popover
點贊 收藏 分享 文章舉報 向日葵xrk 發佈了32 篇原創文章 · 獲贊 6 · 訪問量 2萬+ 私信 關注
原创 UIAlertController的使用
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"確定刪除此分類嗎?" message:nil preferredStyle:UIAlertC
原创 iOS自動打包併發布腳本
http://my.oschina.net/u/727843/blog/391946 前言 IOS的開發過程中,當需要給測試人員發佈測試包的時候,直接使用xcode來做的效率是非常低下的。尤其是當有一點小改動需要重新出包時,那簡直是
原创 tableview或者ScrollView看不到邊界以外的內容
爲什麼tableview或者ScrollView看不到邊界意外的內容? 因爲ScrollView有個屬性是bounces(A Boolean value that controls whether the scroll view b
原创 AES 3DES MD5 Base64區別
AES加密數據塊分組長度必須爲128比特,密鑰長度可以是128比特、192比特、256比特中的任意一個(如果數據塊及密鑰長度不足時,會補齊)。 3DES又稱Triple DES,是DES加密算法的一種模式,它使用3條56位的密鑰對數據進
原创 cycript和.a靜態庫
cycript用下面的方法列出來視圖控制器所有的方法: function printMethods(className) { var count = new new Type("I"); var methods = class_copyM
原创 UIViewAlertForUnsatisfiableConstraints
問題 Will attempt to recover by breaking constraint Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstrain
原创 POS機驗證流程
1 上傳POS的SN和商戶ID, 2 向後臺簽到,從後臺獲得工作祕鑰; 3 在從工作祕鑰中拼接出macKey和pinKey; 4 將pinKey和macKey導入POS機。 報文中的部分字段: agentId = 0;
原创 UIKeyboardType
UIKeyboardTypeNumbersAndPunctuation 有數字和搜索按鈕 UIKeyboardTypeNumberPad 只有數字 UIKeyboardTypePhonePad 有數字和加減乘除
原创 leftBarButtonItem設置左邊距,rightBarButtonItem設置右邊距
UIButton *backButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 30, 44)]; [backButton addTarget:self action
原创 ios 幾天後到期
if (![cardData[@"paymentDay"] isEqualToString:@""]) { // 取當前日期 NSDate *currentDate = [NSDa
原创 iOS,debug,release,distribution的區別
使用XCode經常會看到針對上述三種版本的各種配置項,但並不是很清楚。 這裏總結下: 一般就是區分debug和release. debug用來調試,一般會帶調試信息,release去掉了調試信息,並且一般編譯時經過了優化,用來發布給