原创 IOS - TabBarController 顯示/隱藏第一級頁面的TabBar

- (void)setTabBarHidden:(BOOL)hidden {     UIView *tab = self.tabBarController.view;          if ([tab.subviews count]

原创 IOS-UITableView-Cell的重繪-避免出現重疊視圖

在IOS6.0以後,UITableView新增了兩個方法 用於Xib的 - (void)registerNib:(UINib *)nib forCellReuseIdentifier:(NSString *)identifier NS_A

原创 IOS-小技巧

 //獲取版本號 NSString *versionNum = [[[NSBundle mainBundle] infoDictionary]                                     objectForKe

原创 IOS-播放沙盒目錄及本地音頻文件

需要添加鏈接庫  AVFoundation.framework, AudioToolbox.framework 添加頭文件 #import <AVFoundation/AVFoundation.h> #include <AudioToo

原创 IOS-圓角矩形

添加鏈接庫QuartzCore.framework 添加頭文件 #import <QuartzCore/QuartzCore.h> UButtonIcon.layer.cornerRadius =22.5f; //數字根據大小進行微調

原创 IOS-iphone真機免證書調試

準備工作:iphone需要越獄。 一. 製作假證書 1、 打開   Finder->應用程序->實用工具 ->  鑰匙串訪問  2、單擊:"鑰匙串訪問"選擇  "證書" 再選擇"創建證書"過程如下圖:

原创 IOS-關於委託

寫委託的時候,需要注意進行判斷 if (self.delegate && [self.delegate respondsToSelector:@selector(UpLoadFileFailed:fileConfig:)]) { } U

原创 IOS-多維數組插入數組到最前面

NSMutableIndexSet  *indexes = [NSMutableIndexSet indexSetWithIndex:0]; [indexes addIndex:0]; [NSMutableArray insertObje

原创 IOS-自定義UISegmentedControl

#define IOS7_OR_LATER ([[[UIDevice currentDevice] systemVersion] compare:@"7.0"] != NSOrderedAscending)      NSArray *

原创 IOS-UITableView相關小計

    //設置UITableView分隔線     [tableShowsetSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];     [tableShowsetSepar

原创 IOS-蘋果上架流程 相關信息

Default Language: 默認語言一般選擇中文 App Name   應用名稱 SKU Number  用來區分App和查看銷量,可以用BundleIdentifier也可以用應用的名稱 Availability Date:發

原创 IOS-IOS7適配代碼

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 if ([[[UIDevicecurrentDevice] systemVersion] floatValue] >= 7.0){

原创 IOS-UITableView之刷新某一行

 NSIndexPath *te = [NSIndexPath indexPathForRow:0 inSection:0];//刷新第一個section的第1行  [tableView reloadRowsAtIndexPaths:[N

原创 Swift小計

  REPL (Read-Eval-Print Loop “讀取-求值-輸出”循環,簡稱REPL)    設置環境:   打開終端  sudo xcode-select -switch /Applications/Xcode.app/C

原创 iOS-關於UINavigationController的title不顯示問題

今天在寫一個界面的時候碰到了一個奇怪的問題。最開始我寫了一個基類繼承自UINavigationController @interface BaseViewController : UINavigationController @en