search

Home  >  Q&A  >  body text

objective-c - oc范型能用于适配iOS7 的代码吗?

新特性如NSArra用<string*>能用在需要适配ios7的应用上吗吗

给我你的怀抱给我你的怀抱2777 days ago663

reply all(2)I'll reply

  • 迷茫

    迷茫2017-04-28 09:08:28

    Don’t call it OC, it’s too unprofessional. People abbreviate it as Objc
    Generics should be fine
    iOS8 No problem 7 I haven’t tried it yet
    Understand Objective-C in principle as a dynamic language
    Array can put whatever you want, so generics only need to be processed during compilation The
    runtime is still the old code~

    reply
    0
  • PHP中文网

    PHP中文网2017-04-28 09:08:28

    This is what the article I read said:

    Lightweight Generics are lightweight because this is a pure compiler syntax support (llvm 7.0). Like Nullability, it does not rely on any objc runtime upgrade. In other words, this new syntax is available on Xcode 7 It can be used and is fully backward compatible (lower iOS versions)
    Attached is the article I read

    reply
    0
  • Cancelreply