objective c - Will Apple reject this code? -
please tell me if think code rejected apple.
catransition *animation = [catransition animation]; animation.delegate = self; animation.duration = 0.3f; animation.timingfunction = uiviewanimationcurveeaseinout; animation.removedoncompletion = no; if (curlup) { animation.type = @"pagecurl"; animation.fillmode = kcafillmodeforwards; animation.endprogress = 0.7; } else { animation.type = @"pageuncurl"; animation.fillmode = kcafillmodebackwards; animation.startprogress = 0.3; } // perform animation uiview *whitebg = [self.view viewwithtag:10]; nsinteger purple = [[whitebg subviews] indexofobject:[whitebg viewwithtag:99]]; nsinteger white = [[whitebg subviews] indexofobject:[whitebg viewwithtag:100]]; [whitebg exchangesubviewatindex:purple withsubviewatindex:white]; [[whitebg layer] addanimation:animation forkey:@"page curl"];
if yes, how can same result way?
the page curl effects (animation.type = @"pagecurl";
) private, undocumented effects. risk application rejected.
this blog has more information , shows app store-safe way of implementing similar effect.
Comments
Post a Comment