objective c - Auto-refresh upon launch ios -
i'm going through bloc bootcamp ios development , i'm looking solution reload "new images" upon launch. needs automatically refresh , fetch new images without user having pull refresh. building out replica of instagram if helps.
it sounds you've got method created accomplish task, it's question of calling method.
i don't know code looks like, i'll attempt "physics poets" example:
- (void)pulltorefreshmethod { // there might code configuring view, etc. in here // code refresh }
the simplest way when loads in viewdidload
on initial viewcontroller
. let's pulltorefreshmethod
other things in addition refreshing. take code refreshes , put in own method.
- (void)refreshinstagram { // code refresh }
then, within pulltorefreshmethod
, you'd call with:
[self refreshinstagram];
and in viewdidload
, call there, too.
without specific code, can't give specific answer, though.
Comments
Post a Comment