diff --git a/LifeLog/LifeLog/HomeViewController.m b/LifeLog/LifeLog/HomeViewController.m index d84d680..eead6a7 100644 --- a/LifeLog/LifeLog/HomeViewController.m +++ b/LifeLog/LifeLog/HomeViewController.m @@ -288,6 +288,9 @@ static NSInteger numberTotal = 10000; for (NSInteger index = self.currentIndex*maxRequest; index < self.currentIndex*maxRequest + maxRequest; index++) { if ((self.currentIndex*maxRequest + maxRequest) >= activities.count) { self.totalRequest = (int)(activities.count - self.currentIndex*maxRequest); + if (self.totalRequest <= 0) { + [weakSelf complete20Request:activities]; + } } else { self.totalRequest = (int)maxRequest; diff --git a/LifeLog/LifeLog/Info.plist b/LifeLog/LifeLog/Info.plist index c3adb6b..989230b 100644 --- a/LifeLog/LifeLog/Info.plist +++ b/LifeLog/LifeLog/Info.plist @@ -23,7 +23,7 @@ CFBundleVersion - 1 + 2 LSApplicationQueriesSchemes line