objective c - TodayViewController class in iOS Today widget not being read? -


my todayviewcontroller class implemented follows:

#import "todayviewcontroller.h" #import <notificationcenter/notificationcenter.h>  @interface todayviewcontroller () <ncwidgetproviding>  @end  @implementation todayviewcontroller  - (void)viewdidload {     [super viewdidload];     // additional setup after loading view nib.     nslog(@"yeehaw"); }  - (void)didreceivememorywarning {     [super didreceivememorywarning];     // dispose of resources can recreated. }  - (void)widgetperformupdatewithcompletionhandler:(void (^)(ncupdateresult))completionhandler {     // perform setup necessary in order update view.      // if error encountered, use ncupdateresultfailed     // if there's no update required, use ncupdateresultnodata     // if there's update, use ncupdateresultnewdata      nslog(@"gitalong");     completionhandler(ncupdateresultnewdata); }  - (uiedgeinsets)widgetmargininsetsforproposedmargininsets:(uiedgeinsets)defaultmargininsets{     nslog(@"yowza!");     return uiedgeinsetszero; }  @end 

basically boilerplate implementation xcode provides when create today target in app. changes i've made add nslog() calls in each of functions, , remove default left margin in widgetmargininsetsforproposedmargininsets() function (as per method in thread).

however, when @ system log output, none of nslog statements being output, , default left margin has not gone away, i'm thinking reason, app not reading/processing todayviewcontroller class @ all, though otherwise displaying maininterface storyboard correctly.

does know why might happening?

update

a detail forgot mention maininterface.storyboard file using implement interface copied project version of same project. able fix problem recreating entire project scratch , recreating interface scratch well, maininterface.storyboard file used in "working" project original 1 generated xcode. while strategy fixed immediate problem, still don't understand why storyboard file imported project didn't work. poses problem interface reuse. i'd still know how link imported storyboard file custom viewcontroller.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -