Time of Update: 2018-07-25
#import "DownLoadCell.h" @implementation DownLoadCell - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ self = [superinitWithStyle:style
Time of Update: 2018-07-25
iOS面試題4 1.類變數的@protected @private @public @package聲明各有什麼含義。 @private 作用範圍只在自身類(外界不可訪問,子類不能繼承) @protected 作用範圍在自身類和子類,外界不可訪問,但是子類可以繼承。(如果不加修飾的話,預設就是@protected) @public外界可以訪問,也可以被子類繼承 @package作用範圍是在某個架構內
Time of Update: 2018-07-25
此app中收錄了《歲月是佛前牽手的一朵情花》。 歸去來兮,前半生的我走完了別人一生的路,由生至死,除了情,我不知生命的意義究竟為何。 我如一隻撲火的飛蛾,投入燃燒生命的熊熊烈火,隨灰燼飄向蒼穹。二十四歲之後,我開始我的另一番人生,我稱它“問佛之路”。 飛蛾終於破繭成蝶,穿破命運的樊籠,真正飛舞在蒼穹之上,張揚的翅膀是它無聲執著的信仰。 【support information】
Time of Update: 2018-07-24
我的是限制小數點後8位 - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{ // 限制只能輸入數字 BOOL isHaveDian = YES;
Time of Update: 2018-07-25
首先添加庫問題: 選擇頁簽Build Phases->Link Binary With Libraries點+添加庫 然後command+shift+k清除曆史debug的垃圾 複製其它工程檔案編譯錯誤問題: 當拷貝檔案到工程裡的時候,若不注意勾選"Add to Target",運行時會報如下類似的錯誤:Undefined symbols for architecture i386:
Time of Update: 2018-07-25
1 截取byte[]中一部分資料,從begin 開始,長度是 count - (void)bytesplit2byte:(Byte[])src orc:(Byte[])orc begin:(NSInteger)begin count:(NSInteger)count{ memset(orc, 0, sizeof(char)*count); for (NSInteger i =
Time of Update: 2018-07-25
iOS開發71-解決調試時Could not find Developer Disk Image問題 使用Xcode進行真機調試時,彈出對話方塊”Could not find Developer Disk Image" 這是由於真機系統過高或者過低,Xcode中沒有匹配的配置包檔案。 先去更新到最新的Xcode版本。 進入如下的目錄:
Time of Update: 2018-07-25
/** * 檢測版本升級需要用到的參數 */ iFeverAPPID = @"1076057848”; //appId; //調用檢測版本更新的方法 [selfcheckVersion];
Time of Update: 2018-07-25
最近項目中做了一個標題列中的按鈕選取器,原生的UISegmentedControl 無法達到項目效果,效果如下圖:
Time of Update: 2018-07-25
iOS開發74-XCode(7.3.1)使用Instruments(7.3.1)測試記憶體流失例子(循環參考) 特意寫了一個記憶體泄露的代碼,ARC環境下的循環參考。 兩個對象都是強引用,並且互相指向,故而造成記憶體流失。 -(void)viewDidLoad{ LeakModel * leaka = [[LeakModel alloc]init]; leaka.myName = @"leaka"; LeakModel *
Time of Update: 2018-07-25
那麼,如何判斷手機是否越獄呢。 需添加以下C語言庫 #import <sys/stat.h>#import <dlfcn.h>#import <mach-o/dyld.h>#include <sys/types.h>#include <sys/sysctl.h>#import <ifaddrs.h>#import <arpa/inet.h>#import <net/if.h>
Time of Update: 2018-07-25
記錄備用 指標 1.SVProgressHUD 透明指標 https://github.com/TransitApp/SVProgressHUD 2.MBProgressHUD https://github.com/jdg/MBProgressHUD 圖片 1.SDWebImage 圖片非同步載入 https://github.com/rs/SDWebImage 2.FXBlurView 視圖毛半透明效果 https://github.com/
Time of Update: 2018-07-25
我的地址 :http://blog.csdn.net/jinglijun/article/details/9365879 這一篇我們先瞭解一下基本知識,這樣對我們後面的學習更加有協助 。
Time of Update: 2018-07-25
出現這個問題一般是出現了殭屍對象,在調用殭屍對象方法的時候崩潰。 對於殭屍對象模式怎麼設定,自行百度,這裡只分析三種可能原因: 1.block順延強制,導致block代碼塊在對象可能消失之後再去調用對象方法 2.如果殭屍模式+全域斷點都設定了,依然崩潰在main函數,很可能是xib的連線,例如xib裡button點方法在代碼已經刪除,但是xib的連線並未刪除,造成壞線,可能引起崩潰
Time of Update: 2018-07-25
// 通過網域名稱擷取IP地址 + (NSString *)IPAdressFromDomain:(NSString *)host { structhostent *hostent = gethostbyname([hostUTF8String]); if (!hostent) { herror("resolv"); returnNULL; } &
Time of Update: 2018-07-25
在用UICollectionView展示資料時,有時我們希望將cell的間距調成一個我們想要的值,然後查API可以看到有這麼一個屬性: - (CGFloat)minimumInteritemSpacing { return 0;} 然而很多情況下我們會發現,這樣寫不能滿足我們的要求,cell之間仍然有一個不知道怎麼產生的間距。
Time of Update: 2018-07-25
如上圖所示: 自訂標籤,自行排列,可控制邊距,行距,列舉,實現整齊的自由排列,話不多說,看代碼 //.m首頁面#import "ViewController.h"#import "TagsFrame.h"@interface ViewController (){ TagsFrame *_frame; NSArray *_tagsArray;}@end@implementation ViewController-
Time of Update: 2018-07-25
#pragma mark - #pragma mark Application lifecycle #define pdfUrl - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
Time of Update: 2018-07-24
iOS工程中刪除預設的並使用自建的ViewController後黑屏 老帥(http://blog.csdn.net/shuaihj) 現象 往往我們建立一個iOS工程後,會使用自訂的ViewController,而不是其內建的。作為第一次使用iOS開發的人來說,就會遇到一個問題,app啟動後黑屏,並沒有如預想的那樣顯示自訂的View。 查看錯誤資訊 Failed to instantiate the default view controller for
Time of Update: 2018-07-24
具體實現方式如下: CATransition* transition = [CATransition animation]; transition.type = kCATransitionPush; //改變視圖控制器出現的方式 transition.subtype = kCATransitionFromLeft;