开发者

FlowCover - draw images onto the screen for the first time

开发者 https://www.devze.com 2023-01-18 05:24 出处:网络
I would like to kno开发者_开发百科w how to make the FlowCoverView be drawn when I want it to (after images are obtained). http://www.chaosinmotion.com/flowcover.m

I would like to kno开发者_开发百科w how to make the FlowCoverView be drawn when I want it to (after images are obtained). http://www.chaosinmotion.com/flowcover.m

I have tried [FlowCoverView draw] but that gives me an error.

Thanks


I needed to dynamically update the flowcover so I created a redraw method in FlowCoverView and then call it from the view controller when the data source changes.

- (void)redraw {
    [cache emptyCache];
    [self setNeedsDisplay];
    [self draw];
}


Create an IBOutlet in your controller for the FlowCoverView in your nib file and connect them. Then call [self.flowCoverView draw] when you want to refresh the view.

0

精彩评论

暂无评论...
验证码 换一张
取 消