iphone code not firing -
i have class im using , cant code fire
weatherserver.m ---------------------- - (nsarray *)weatheritemsformapregion:(mkcoordinateregion)region maximumcount:(nsinteger)maxcount { //code not firing } myviewcontroller.h ----------------------- @class weatherserver; @interface mapview : uiviewcontroller <mkmapviewdelegate, uitextfielddelegate, cllocationmanagerdelegate, adbannerviewdelegate> { weatherserver *weatherserver; } @property(nonatomic, retain) iboutlet weatherserver *weatherserver; @end myviewcontroller.m ---------------------- #import "weatherserver.h" @implementation mapview @synthesize weatherserver; - (void)mapview:(mkmapview *)map regiondidchangeanimated:(bool)animated { nsarray *weatheritems = [weatherserver weatheritemsformapregion:mapview.region maximumcount:300]; [mapview addannotations:weatheritems]; } @end
regiondidchangeanimated fires ok however, code in weatheritemsformapregion never gets fired.
i figured out going on.
i had been initializing class via interface builder did iphone .xib , not ipad .xib.
Comments
Post a Comment