From 5e275cad875d95076cebe962edbbcc8a739e1d67 Mon Sep 17 00:00:00 2001 From: cwrichardkim93 Date: Tue, 23 Dec 2014 12:08:15 +0800 Subject: [PATCH] changed example --- .../UserInterfaceState.xcuserstate | Bin 43597 -> 43622 bytes RKNotificationHub/ViewController.m | 25 ++++++++++-------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/RKNotificationHub.xcodeproj/project.xcworkspace/xcuserdata/cwrichardkim93.xcuserdatad/UserInterfaceState.xcuserstate b/RKNotificationHub.xcodeproj/project.xcworkspace/xcuserdata/cwrichardkim93.xcuserdatad/UserInterfaceState.xcuserstate index 23c2fdae42108562041ec61c11423852737049b4..772724554cb5ffc51932db810aaafe2291247469 100644 GIT binary patch delta 4142 zcmZ9^XIN7QqX1x6Q55Sg2qq^vAvsA-c0eG33=%>HB#f~4-qWxNft;M=WM~3uwOH%c zx=;%jTlcKiiq+Qf(Yorwf!n&P{hoV&-oNjU_w2<P(>-+3H^j02_u9@gm*+A;xyuPq95^d;%wqvB0wY(NklRcBGQO3kx7&jlZhon z3vr0}AL1S2J>mo6BjOX{GjI|(3!Dqi2mQf?U=YX#BS9%B17kon7zb*>1TYb-0Gq)! zumkJ@yFoMP2K!9lm*5JpAN&T~0&WKfz}?^=_&?xL@C0}gJPn=!&w_t~*T5U#E$|LF z2EGLU248`1NK;4)NsCAT2_%t8R1!>Lk+`G~QWzs3Vs@FdQ0{r&m%)*9$8FQl2gd( zlx#``#X#w%m?71{yqf(D^s=m%&YbP75RjX=Lb=b;PGWoQ(7OPxz) zP-Cfu)H-T2wT;?IHBqfpJJm^DM)gp)P_NQ_XtQW@X$xopGzKk{7EM#pbhKPrGp(Pt znYNd9fMz;GJ4!o2J4O42c9wRYc7ZlVyH6XZJ)u3Py`;USy`z1geWFjG2hrJd89j+! zN$;Ysr0=4iqMxV#M!!hEM!!zKNq2-9IM z90G^I0yq*@!CE*0PJ+|mOgIP5gBwk72aLf>VK>|hFNgc#Rq$$f2RsZPgHOSy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z4Dp5}L#iRekZs5_6dH;R4TdH|i=oZ%x8b$nAHzGthqi>a+_wC-!nTsOV{L!6U2Gd| zyNddws0!7fS~LvZi5@_Q(1Ylac4qsccK`Op?c(-z?c3XTwhy%b(&5!G5Vz5*!4=cx7FcW6R z2+WGvv1Ql_Y!$W|TZ^s3`msUm59|bX3Oj=hW9PA}*bVG9b{BhqJ;cVa52i_`uT1kz zBooC%Gcim&lhCxtPfgEFW2RT8kEU^aB0dS9 zf=|Ug@r5`8M{qGN!DYAtSK;A!Bp!pu;fZ)Mo`aX-b+{3?;azw)z7+4p*W&B(P52LZ zKfVqB1^*pCghk3S{WTu#DW`-GMnPGE)S!5QQ zrRI(1UFJW`ht0>#C(NhK!{!n5Me}|0L-S+vGxM1FwfU|2z4@bMt_8F#vM4R_mO@Lt z1+^G0xP`E+vTU$ywrsU*vkX~oS)N*+S)NWL#1L_aI7%ERP7!B`^TY*Wlz2=$BVG_M ziPywi;yv-H)2(x2=cLXrJH0xEos!PD&f-qAv$u0c=Mk%ib*A+jE7=NLh1NyZ0BfLC zVO3kT)=;a?idy@u1J>WH$E+u;r>*F)b;NqnI%>UdePVrXeQAAT{b(JxO|(t6O|kK9 z={Bp)W$Uy3WZP#uXggy2({|E!-gdz@YP)K?ZhK&RXnSV+V4rB8Z2!VO-R^0hWB=B^ zz)rF=>@0hbJ=7j$kF_V*lkHjdTzi4N*j{R{v$xuD`;xAYUE_`~9CJ|z$>Hq~I3y0a zL*)o|ggU|ejWH@A`5%h~N*>g;v)IafQ^I@dclI(In-oxeEub_3mUU|j I0u#3VAM>r9g8%>k diff --git a/RKNotificationHub/ViewController.m b/RKNotificationHub/ViewController.m index 933ce02..9b93c2c 100644 --- a/RKNotificationHub/ViewController.m +++ b/RKNotificationHub/ViewController.m @@ -22,32 +22,35 @@ - (void)viewDidLoad { [self setupButton]; UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"earth"]]; - imageView.frame = CGRectMake(50, 50, 70, 70); + imageView.frame = CGRectMake(self.view.frame.size.width/2 - 35, 70, 70, 70); hub = [[RKNotificationHub alloc]initWithView:imageView]; - [hub moveCircleByX:-5 Y:5]; + [hub moveCircleByX:-5 Y:5]; // moves the circle five pixels left and 5 down [self.view addSubview:imageView]; } --(UIButton *)setupButton +-(void)testIncrement +{ + [hub increment]; + + [hub pop]; +// [hub blink]; +// [hub bump]; +} + +-(void)setupButton { UIColor* color = [UIColor colorWithRed:.15 green:.67 blue:.88 alpha:1]; UIButton *button = [[UIButton alloc]initWithFrame:CGRectMake(50, 400, 200, 60)]; + button.center = self.view.center; [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; - [button setTitle:@"Messages" forState:UIControlStateNormal]; + [button setTitle:@"Increment" forState:UIControlStateNormal]; [button setBackgroundColor:color]; button.layer.cornerRadius = 5; [button addTarget:self action:@selector(testIncrement) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview:button]; - return button; -} - --(void)testIncrement -{ - [hub increment]; - [hub pop]; } - (void)didReceiveMemoryWarning {