240 發(fā)簡信
IP屬地:重慶
  • NSObject的alloc方法當(dāng)然在NSObject的meta class里面去找珊拼。但是 alloc 之后返回的是一個(gè)實(shí)例變量腺占,此時(shí)的isa指向的就是__NSPlaceholderArray這個(gè)類。
    + (instancetype)alloc OBJC_SWIFT_UNAVAILABLE("use object initializers instead");

    In the case of NSArray, when an instance is allocated, it’s an instance of another class that’s allocated (during a call to alloc), known as a placeholder array. This placeholder array is then converted to an instance of another class, which is a concrete subclass of NSArray. -《Effective Objective-C 2.0》

    iOS Runtime:Class 和 meta-class

    1桦卒、Class Objective-C類是由Class類型來表示的洗鸵,它實(shí)際是一個(gè)指向objc_class結(jié)構(gòu)體的指針。它的定義如下 objc_class結(jié)構(gòu)體定義如下: 在這...

  • ??我的因?yàn)槠渌麕斓脑虿荒芗觰se framework!鸠补,看著好難受

    iOS IB Designable Errors Failed to update auto layout status:……

    (我用的是Xcode8.3.1)今天在用xib拖一個(gè)cell的時(shí)候突然給我報(bào)兩個(gè)錯(cuò)誤 可神奇的是可以運(yùn)行,雖然不影響使用,但是看到紅色的就是不爽啊,然后想著怎么解決,Goog...

  • 阿西壩,想屎的心都有了??

    iOS開發(fā)Xcode11.2版本坑

    巨坑嘀掸,真的吐了 跑xib報(bào)Could not instantiate class named _UITextLayoutView because no class named...

  • 120
    仿今日頭條項(xiàng)目架構(gòu) (二)—— 項(xiàng)目主架構(gòu)的搭建

    版本記錄 前言 今日頭條目前發(fā)展勢頭很猛,不僅有新聞資訊揩晴,還有視頻勋陪,直播,微頭條的模塊硫兰,可以說粥鞋,頭條已經(jīng)集成了新聞、社交瞄崇、短視頻和直播等多方面的技術(shù)和發(fā)展方向。接下來幾篇我們...

  • 4篇都看完衅鹿,連十分之一都沒理解到。:confounded:

    深入淺出iOS系統(tǒng)內(nèi)核(4)— 文件系統(tǒng)

    本文參考《Mac OS X and iOS Internals: To the Apple’s Core》 by Jonathan Levin文章內(nèi)容主要是閱讀這本書的讀書筆...

  • 有用哈过咬,貼上我解決的代碼大渤,直接在tabbarcontroller中操作,
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(setupStatusBar) name:UIApplicationDidChangeStatusBarFrameNotification object:nil];


    }

    - (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self setupStatusBar];
    }

    - (void)setupStatusBar{
    CGRect statusBarRect = [[UIApplication sharedApplication] statusBarFrame];

    if (ScrenSize.height > 736) {
    self.view.frame = CGRectMake(0, 0, ScrenSize.width, ScrenSize.height - statusBarRect.size.height + 44);
    }else{
    self.view.frame = CGRectMake(0, 0, ScrenSize.width, ScrenSize.height - statusBarRect.size.height + 20);
    }
    }

    iPhone/iOS開啟個(gè)人熱點(diǎn)的相關(guān)位置調(diào)整小結(jié)

    冬至已到掸绞,圣誕將近泵三,最近公司項(xiàng)目實(shí)在太多,三四個(gè)項(xiàng)目反復(fù)的切換真的讓人焦頭爛額衔掸,趁今天有點(diǎn)空烫幕,把維護(hù)的三個(gè)項(xiàng)目順利送出,剛好可以縷縷思路敞映,記錄一下最近遇到的問題较曼。說不著急那是...

  • 樓主是妹子:smile:

    iOS開發(fā)筆記-根據(jù)銀行卡號判斷銀行名稱

    應(yīng)大家的要求抽空轉(zhuǎn)成了plist文件方便大家查看使用翠桦,所有的卡名以及bin號已經(jīng)去重哈横蜒,git地址在末尾 雞肋的后臺返回銀行卡號卻沒有返回名稱,問他是不是忘了添加销凑,他說你自己...

亚洲A日韩AV无卡,小受高潮白浆痉挛av免费观看,成人AV无码久久久久不卡网站,国产AV日韩精品