I💖Xcode Plugins

I💖Xcode Plugins

D72f33c62d4174992d1895ad1a3df9ab?s=128

haranicle

March 10, 2015
Tweet

Transcript

  1. IXcode Plugins !IBSBOJDMF

  2. ࣗݾ঺հ !IBSBOJDMF ݪҰ࢙ ͸Β͔ͣ͠  J04ΞϓϦ։ൃ J04ϓϩδΣΫτͷٕज़ࢧԉ ͨ·ʹαʔόαΠυ ͱ͖Ͳ͖"OESPJE 

  3. ݸਓ։ൃ  ಛघจࣈ ແྉҐ ϕετ৽ண"QQ 23ίʔυ Ϧʔμʔ ͑΋ελϯϓ ͨ΂Χϝϥ ಛघจࣈΩʔϘʔυ

  4. 9DPEF1MVHJOT 

  5. 9DPEF1MVHJOTBSFศར ✦ 77%PDVNFOUFS ✦ υΩϡϝϯτίϝϯτΛ͋Δఔ౓ࣗಈੜ੒ ✦ $MBOH'PSNBU ✦ ϑΝΠϧอଘͷλΠϛϯάͰίʔυΛ
 ࣗಈͰ੔ܗ

    Πϯσϯτͱ͔\ͷҐஔͱ͔  ✦ -JO ✦ /4-PDBMJ[FE4USJOHͷ؅ཧΛ؆୯ʹ ✦ 5VOB ✦ $PNJOHTPPOʜ 
  6. "MDBUSB[JT࠷ߴ 9DPEF͔Β 1MVHJO 
 $PMPS4DIFNF  5FNQMBUFΛ
 ͔ΜͨΜΠϯετʔϧ Ҏ্ͷ
 1MVHJO͕ରԠ

    
  7. ✦ 9DPEF1MVHJOT/4)JQTUFS]IUUQ OTIJQTUFSDPNYDPEFQMVHJOT ✦ 9DPEF1MVHJO-JTUJOHr2VBMJUZ9DPEF1MVHJOT ]IUUQTNBOJBDEFWDPNYDPEFQMVHJOT ✦ 9DPEFͷศརϓϥάΠϯ·ͱΊ2JJUB]IUUQ RJJUBDPNVTBHJNBSVJUFNT FBEEGCB

    ✦ J04։ൃऀ!೔ຊ]J04։ൃϨγϐ]IUUQ XXXJPTKQDPNEFW ✦ ߋ৽͕ਓྗʜ  9DPEF1MVHJO঺հ#MPH
  8. Ͳͷ1MVHJO͕͍͍ͷ͔ Α͘Θ͔ΒΜ ͔ͤͬ͘ެ։͞ΕͯΔͷʹ ຒ΋ΕͯΔ1MVHJO͕
 ͋Γͦ͏ 

  9. "MDBUSB[5PVS 

  10. )PXUPVTF ✦ ϩάΠϯ͢Δ ✦ ϩʔυ͢Δ ✦ ݟΔ ✦ ৄ͘͠ݟΔ ✦

    5IBU’TJU 
  11. ͳʹͯ͠Δͷ ✦ BMDBUSB[QBDLBHFT͔Β"MDBUSB[Ͱެ։͞Ε ͍ͯΔ9DPEF1MVHJOҰཡΛऔಘ
 IUUQTHJUIVCDPNTVQFSNBSJOBMDBUSB[QBDLBHFTCMPCNBTUFS QBDLBHFTKTPO ✦ ֤1MVHJOͷ৘ใΛ(JU)VC"1*͔Βऔಘ ✦ ֤1MVHJOͷ৘ใΛ3FBMNʹ֨ೲ

    ✦ 3FBMNͷ৘ใΛ5BCMF7JFXͰදࣔ 
  12. 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) //(தུ) } ॳظ஋ΛઃఆͰ͖Δ
  13. 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)
  14. )PXUPJOTUBMM"MDBUSB[5PVS ✦ ͔͜͜ΒDMPOF
 IUUQTHJUIVCDPNIBSBOJDMF"MDBUSB[5PVS ✦ Ϗϧυ௨Βͳ͍͔Βࣗ෼Ͱ"1*Ωʔൃߦઃఆ
 Ͳ͔͜ʹҎԼΛهड़  let GithubKey

    = [ "consumerKey": "abcdefghijklm", "consumerSecret": "1234567890abcdef" ]
  15. 50%0 ✦ "QQ4UPSFͰϦϦʔε ✦ ݕࡧͰ͖ΔΑ͏ʹ͢Δ ✦ 4UBS͚ͭΒΕΔΑ͏ʹ͢Δ ✦ $PMPS4DIFNFͱ1SPKFDU5FNQMBUFʹ΋ରԠ ✦

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