More Related Content
PPTX
PDF
PPTX
PPTX
KEY
CCSendMessages introduction KEY
PDF
PPS
More from Keisuke Hata
PDF
KEY
KEY
KEY
PDF
Gcs2014 0225 cocos2d-xjsb PDF
PDF
PDF
Impact beginngers guide_1.19 PDF
KEY
KEY
KEY
PDF
PDF
PDF
PDF
PDF
PDF
PDF
Recently uploaded
PDF
歴史好きのスクラム話 JBUG名古屋#5 AI時代のデータドリブンなプロジェクト管理 PDF
How We Operated Ticket-Driven Development in JIRA.pdf PDF
論文紹介:"Reflexion: language agents with verbal reinforcement learning", "MA-LMM... PDF
論文紹介:"MM-Tracker: Motion Mamba for UAV-platform Multiple Object Tracking", "M... PDF
論文紹介:Simultaneous Detection and Interaction Reasoning for Object-Centric Acti... PDF
LoRaWAN小売業DXソリューション ~天候データと人流カウンターを利用して売り上げアップに貢献! PDF
手軽に広範囲でプライバシーを守りながら人数カウントできる ~ LoRaWAN AI人流カウンター PF52 日本語カタログ How To Build Last Fm For I Phone
- 1.
- 2.
- 3.
- 4.
- 5.
展開する
apikey.h.in→apikey.h
にリネーム(大事)
- 6.
apikey.hを開く
//
// API KeyConfiguration
// Enter your API key and secret below
//
#define API_URL "http://ws.audioscrobbler.com/2.0/"
#define API_KEY ""
#define API_SECRET ""
#define PINCHMEDIA_ID @""
なんか、キーが必要なようだ・・・
上2つは、どうやら、
Last.FMのAPIのキーっぽい。
- 7.
- 8.
- 9.
でもこれって動作させるだけには
いらないでしょ?
ObjCには、カテゴリがある!!
ということはインスタンスをnilにして
動かしているフリをすればいい。
MobileLastFMApplicationDelegate.m
MobileLastFMApplicationDelegate.h
これを改造することにした。
- 10.
改造後
MobileLastFMApplicationDelegate.h
#import "Beacon.h"
@interface Beacon(Dummy )
+ (id)initAndStartBeaconWithApplicationCode:(NSString *)theApplicationCode useCoreLocation:(BOOL)coreLocation useOnlyWiFi:(BOOL)wifiState;
+ (void)endBeacon;
+ (id)shared;
@end
@interface MobileLastFMApplicationDelegate : NSObject<UIApplicationDelegate,UIActionSheetDelegate> {
MobileLastFMApplicationDelegate.m
NSString *kUserAgent;
@implementation Beacon( Dummy )
+ (id)initAndStartBeaconWithApplicationCode:(NSString *)theApplicationCode useCoreLocation:(BOOL)coreLocation useOnlyWiFi:(BOOL)wifiState {
return nil;
}
+ (void)endBeacon {
return;
}
+ (id)shared {
}
return nil;
nil最高!!
@end
@implementation MobileLastFMApplicationDelegate
- 11.