iphone - How do I add a reflection to a UILabel. IOS -
(newbie) question here. searched not find specific answer anywhere.... want add reflection (and glow if possible) uilabel. saw apple's reflection project code works uiimage not label.
just adding simple clock:
- (void)runtimer //starts timer messages runclock every 0.5sec { myticker = [nstimer scheduledtimerwithtimeinterval:0.5 target:self selector:@selector(runclock) userinfo:nil repeats:yes]; } - (void)runclock { nsdateformatter *formatter = [[[nsdateformatter alloc] init] autorelease]; nsdate *date = [nsdate date]; // produce time looks "12:15:00 pm". [formatter settimestyle:nsdateformattermediumstyle]; [clocklabel settext:[formatter stringfromdate:date]]; }
i wrote article on how generate reflections of ui element or group of elements. canned technique can dropped project , easy use. source code , article can found @ http://aptogo.co.uk/2011/08/no-fuss-reflections/
Comments
Post a Comment