Upgrade to Pro — share decks privately, control downloads, hide ads and more …

I💖Xcode Plugins

I💖Xcode Plugins

haranicle

March 10, 2015
Tweet

More Decks by haranicle

Other Decks in Technology

Transcript

  1. 3FBMNJT͔Θ͍͍ ✦ ಋೖ͔ΜͨΜ ✦ $PDPB1PETPS$BSUIBHF ✦ ΋ͪΖΜ4XJGUͰ΋͔ͭ͑Δ ✦ εΩʔϚఆ͔ٛΜͨΜ ✦

    ϞσϧΫϥεΛఆٛ͢Δ͚ͩͰ͍͍ ✦ ϞσϧΫϥε3-.0CKFDUΛܧঝͨ͠Ϋϥε  class Plugin: RLMObject { dynamic var uuid = NSUUID().UUIDString dynamic var name = "" dynamic var url = "" //(தུ) dynamic var starGazersCount:Int = 0 dynamic var updatedAt:NSDate = NSDate(timeIntervalSince1970: 0) //(தུ) } ॳظ஋ΛઃఆͰ͖Δ
  2. 3FBMNJT͔Θ͍͍ ✦ τϥϯβΫγϣϯ ✦ 3-.3FTVMUT ✦ ݕࡧ݁Ռͷ৚݅Λ3-.3FTVMUTʹొ࿥͓ͯ͠ ͘Πϝʔδ ✦ %#͕ߋ৽͞ΕΔͱউखʹ3-.3FTVMUT΋ߋ৽

    ͞ΕΔ  RLMRealm.defaultRealm().transactionWithBlock{ realm.addObject(plugin) } let realm = RLMRealm.defaultRealm() realm.beginWriteTransaction() realm.addObject(plugin) realm.commitWriteTransaction() ˢಉ͡ҙຯˣ var starsResults = Plugin.allObjects().sortedResultsUsingProperty("starGazersCount", ascending: false)
  3. 50%0 ✦ "QQ4UPSFͰϦϦʔε ✦ ݕࡧͰ͖ΔΑ͏ʹ͢Δ ✦ 4UBS͚ͭΒΕΔΑ͏ʹ͢Δ ✦ $PMPS4DIFNFͱ1SPKFDU5FNQMBUFʹ΋ରԠ ✦

    ৽͍͠1MVHJO͕ϦϦʔε͞ΕͨΒ௨஌ ✦ ΋͏ͪΐͬͱݟͨ໨Λ͔ͬ͜ྑ͍ͨ͘͠ʜ ✦ ͩΕ͔8FCΞϓϦԽͯ͠ʜ