Skip to content

Commit 6c740b2

Browse files
committed
Enabled and fixed various warnings.
1 parent 80b4ed4 commit 6c740b2

File tree

7 files changed

+60
-33
lines changed

7 files changed

+60
-33
lines changed

Demo/Podfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
source 'https://github.com/CocoaPods/Specs.git'
22

3+
platform :ios, '9.0'
4+
35
def shared_pods
46
pod 'SCScrollView', '~> 1.1'
57
end

Demo/SCPageViewController.xcodeproj/project.pbxproj

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -479,13 +479,16 @@
479479
files = (
480480
);
481481
inputPaths = (
482+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
483+
"${PODS_ROOT}/Manifest.lock",
482484
);
483485
name = "[CP] Check Pods Manifest.lock";
484486
outputPaths = (
487+
"$(DERIVED_FILE_DIR)/Pods-SwiftDemo-checkManifestLockResult.txt",
485488
);
486489
runOnlyForDeploymentPostprocessing = 0;
487490
shellPath = /bin/sh;
488-
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
491+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
489492
showEnvVarsInLog = 0;
490493
};
491494
53C7E31A8AA7A4C6E465CF5D /* [CP] Embed Pods Frameworks */ = {
@@ -524,13 +527,16 @@
524527
files = (
525528
);
526529
inputPaths = (
530+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
531+
"${PODS_ROOT}/Manifest.lock",
527532
);
528533
name = "[CP] Check Pods Manifest.lock";
529534
outputPaths = (
535+
"$(DERIVED_FILE_DIR)/Pods-Tests-checkManifestLockResult.txt",
530536
);
531537
runOnlyForDeploymentPostprocessing = 0;
532538
shellPath = /bin/sh;
533-
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
539+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
534540
showEnvVarsInLog = 0;
535541
};
536542
A291028CC9CCB70E3EBC9D06 /* [CP] Check Pods Manifest.lock */ = {
@@ -539,13 +545,16 @@
539545
files = (
540546
);
541547
inputPaths = (
548+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
549+
"${PODS_ROOT}/Manifest.lock",
542550
);
543551
name = "[CP] Check Pods Manifest.lock";
544552
outputPaths = (
553+
"$(DERIVED_FILE_DIR)/Pods-ObjCDemo-checkManifestLockResult.txt",
545554
);
546555
runOnlyForDeploymentPostprocessing = 0;
547556
shellPath = /bin/sh;
548-
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
557+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
549558
showEnvVarsInLog = 0;
550559
};
551560
EF27827ED8A6C0728EE2FE78 /* [CP] Copy Pods Resources */ = {
@@ -776,26 +785,34 @@
776785
buildSettings = {
777786
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
778787
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
788+
CLANG_WARN_ASSIGN_ENUM = YES;
789+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES_ERROR;
790+
CLANG_WARN_COMMA = YES;
779791
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
780792
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
781793
CLANG_WARN_IMPLICIT_SIGN_CONVERSION = NO;
794+
CLANG_WARN_INFINITE_RECURSION = YES;
782795
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
783796
CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS = NO;
797+
CLANG_WARN_STRICT_PROTOTYPES = YES;
784798
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO;
785799
CLANG_WARN_UNREACHABLE_CODE = YES;
786800
GCC_PRECOMPILE_PREFIX_HEADER = NO;
787801
GCC_PREFIX_HEADER = "";
788802
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
789-
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = NO;
803+
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES;
790804
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
791805
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
792806
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
793807
GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES;
794808
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
795809
GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = YES;
796810
GCC_WARN_SHADOW = YES;
811+
GCC_WARN_SIGN_COMPARE = NO;
797812
GCC_WARN_STRICT_SELECTOR_MATCH = YES;
798813
GCC_WARN_UNKNOWN_PRAGMAS = YES;
814+
GCC_WARN_UNUSED_LABEL = YES;
815+
GCC_WARN_UNUSED_PARAMETER = NO;
799816
HEADER_SEARCH_PATHS = "$(inherited)";
800817
INFOPLIST_FILE = "ObjCDemo/SCPageViewController-Info.plist";
801818
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
@@ -812,26 +829,34 @@
812829
buildSettings = {
813830
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
814831
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
832+
CLANG_WARN_ASSIGN_ENUM = YES;
833+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES_ERROR;
834+
CLANG_WARN_COMMA = YES;
815835
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
816836
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
817837
CLANG_WARN_IMPLICIT_SIGN_CONVERSION = NO;
838+
CLANG_WARN_INFINITE_RECURSION = YES;
818839
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES;
819840
CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS = NO;
841+
CLANG_WARN_STRICT_PROTOTYPES = YES;
820842
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = NO;
821843
CLANG_WARN_UNREACHABLE_CODE = YES;
822844
GCC_PRECOMPILE_PREFIX_HEADER = NO;
823845
GCC_PREFIX_HEADER = "";
824846
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
825-
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = NO;
847+
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES;
826848
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
827849
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
828850
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
829851
GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES;
830852
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
831853
GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = YES;
832854
GCC_WARN_SHADOW = YES;
855+
GCC_WARN_SIGN_COMPARE = NO;
833856
GCC_WARN_STRICT_SELECTOR_MATCH = YES;
834857
GCC_WARN_UNKNOWN_PRAGMAS = YES;
858+
GCC_WARN_UNUSED_LABEL = YES;
859+
GCC_WARN_UNUSED_PARAMETER = NO;
835860
HEADER_SEARCH_PATHS = "$(inherited)";
836861
INFOPLIST_FILE = "ObjCDemo/SCPageViewController-Info.plist";
837862
IPHONEOS_DEPLOYMENT_TARGET = 8.0;

SCPageViewController.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Pod::Spec.new do |s|
22
s.name = 'SCPageViewController'
3-
s.version = '2.0.10'
3+
s.version = '2.0.11'
44
s.platform = :ios
5-
s.ios.deployment_target = '5.0'
5+
s.ios.deployment_target = '6.0'
66

77
s.summary = 'SCPageViewController is a container view controller similar to UIPageViewController which provies more control and is much more customizable'
88
s.description = <<-DESC

SCPageViewController/Layouters/SCPageLayouter.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ - (void)animatePageReloadAtIndex:(NSUInteger)index
5757
oldViewController:(UIViewController *)oldViewController
5858
newViewController:(UIViewController *)newViewController
5959
pageViewController:(SCPageViewController *)pageViewController
60-
completion:(void (^)())completion
60+
completion:(void (^)(void))completion
6161
{
6262
[newViewController.view setAlpha:0.0f];
6363
[UIView animateWithDuration:pageViewController.animationDuration delay:0.0f options:UIViewAnimationOptionAllowUserInteraction animations:^{
@@ -71,7 +71,7 @@ - (void)animatePageReloadAtIndex:(NSUInteger)index
7171
- (void)animatePageInsertionAtIndex:(NSUInteger)index
7272
viewController:(UIViewController *)viewController
7373
pageViewController:(SCPageViewController *)pageViewController
74-
completion:(void (^)())completion
74+
completion:(void (^)(void))completion
7575
{
7676
CGRect frame = viewController.view.frame;
7777

@@ -99,7 +99,7 @@ - (BOOL)shouldPreserveOffsetForInsertionAtIndex:(NSUInteger)index pageViewContro
9999
- (void)animatePageDeletionAtIndex:(NSUInteger)index
100100
viewController:(UIViewController *)viewController
101101
pageViewController:(SCPageViewController *)pageViewController
102-
completion:(void (^)())completion
102+
completion:(void (^)(void))completion
103103
{
104104
[UIView animateWithDuration:pageViewController.animationDuration delay:0.0f options:UIViewAnimationOptionAllowUserInteraction animations:^{
105105

@@ -119,7 +119,7 @@ - (void)animatePageMoveFromIndex:(NSUInteger)fromIndex
119119
toIndex:(NSUInteger)toIndex
120120
viewController:(UIViewController *)viewController
121121
pageViewController:(SCPageViewController *)pageViewController
122-
completion:(void (^)())completion
122+
completion:(void (^)(void))completion
123123
{
124124
CGRect finalFrame = [self finalFrameForPageAtIndex:toIndex pageViewController:pageViewController];
125125

SCPageViewController/Layouters/SCPageLayouterProtocol.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ typedef NS_OPTIONS(NSUInteger, SCPageLayouterNavigationContraintType) {
141141
oldViewController:(UIViewController *)oldViewController
142142
newViewController:(UIViewController *)newViewController
143143
pageViewController:(SCPageViewController *)pageViewController
144-
completion:(void(^)())completion;
144+
completion:(void(^)(void))completion;
145145

146146

147147
/** Called by the pageViewController when it receives an insert page animated
@@ -158,7 +158,7 @@ typedef NS_OPTIONS(NSUInteger, SCPageLayouterNavigationContraintType) {
158158
- (void)animatePageInsertionAtIndex:(NSUInteger)index
159159
viewController:(UIViewController *)viewController
160160
pageViewController:(SCPageViewController *)pageViewController
161-
completion:(void(^)())completion;
161+
completion:(void(^)(void))completion;
162162

163163
/** Called bue the pageViewController when inserting a new page that
164164
* would affect the current content offset
@@ -185,7 +185,7 @@ typedef NS_OPTIONS(NSUInteger, SCPageLayouterNavigationContraintType) {
185185
- (void)animatePageDeletionAtIndex:(NSUInteger)index
186186
viewController:(UIViewController *)viewController
187187
pageViewController:(SCPageViewController *)pageViewController
188-
completion:(void(^)())completion;
188+
completion:(void(^)(void))completion;
189189

190190

191191
/** Called by the pageViewController when it receives an move page animated
@@ -204,6 +204,6 @@ typedef NS_OPTIONS(NSUInteger, SCPageLayouterNavigationContraintType) {
204204
toIndex:(NSUInteger)toIndex
205205
viewController:(UIViewController *)viewController
206206
pageViewController:(SCPageViewController *)pageViewController
207-
completion:(void(^)())completion;
207+
completion:(void(^)(void))completion;
208208

209209
@end

SCPageViewController/SCPageViewController.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030
- (void)setLayouter:(id<SCPageLayouterProtocol>)layouter
3131
animated:(BOOL)animated
32-
completion:(void(^)())completion;
32+
completion:(void(^)(void))completion;
3333

3434

3535
/** Sets the layouter and also focuses on the given index
@@ -41,7 +41,7 @@
4141
- (void)setLayouter:(id<SCPageLayouterProtocol>)layouter
4242
andFocusOnIndex:(NSUInteger)pageIndex
4343
animated:(BOOL)animated
44-
completion:(void(^)())completion;
44+
completion:(void(^)(void))completion;
4545

4646

4747
/** Reloads and re-lays out all the pages */
@@ -53,23 +53,23 @@
5353
* @param animated whether the reload should be animated
5454
* @param completion the block to be called when the pages have been reloaded
5555
*/
56-
- (void)reloadPagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated completion:(void(^)())completion;
56+
- (void)reloadPagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated completion:(void(^)(void))completion;
5757

5858

5959
/** Inserts new pages at the given indexes
6060
* @param indexes the indexes where new pages should be inserted
6161
* @param animated whether the insertions should be animated
6262
* @param completion the block to be called when the pages have been inserted
6363
*/
64-
- (void)insertPagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated completion:(void(^)())completion;
64+
- (void)insertPagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated completion:(void(^)(void))completion;
6565

6666

6767
/** Removes the pages from the given indexes
6868
* @param indexes the indexes from where pages should be deleted
6969
* @param animated whether the deletions should be animated
7070
* @param completion the block to be called when the pages have been deleted
7171
*/
72-
- (void)deletePagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated completion:(void(^)())completion;
72+
- (void)deletePagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated completion:(void(^)(void))completion;
7373

7474

7575
/** Moves a page from one index to another
@@ -78,7 +78,7 @@
7878
* @param animated whether the move should be animated
7979
* @param completion the block to be called when the page has been moved
8080
*/
81-
- (void)movePageAtIndex:(NSUInteger)fromIndex toIndex:(NSUInteger)toIndex animated:(BOOL)animated completion:(void(^)())completion;
81+
- (void)movePageAtIndex:(NSUInteger)fromIndex toIndex:(NSUInteger)toIndex animated:(BOOL)animated completion:(void(^)(void))completion;
8282

8383

8484
/** Navigates to the given page index
@@ -88,7 +88,7 @@
8888
*/
8989
- (void)navigateToPageAtIndex:(NSUInteger)pageIndex
9090
animated:(BOOL)animated
91-
completion:(void(^)())completion;
91+
completion:(void(^)(void))completion;
9292

9393

9494
/**

SCPageViewController/SCPageViewController.m

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ - (void)viewDidDisappear:(BOOL)animated
158158
- (void)setLayouter:(id<SCPageLayouterProtocol>)layouter
159159
andFocusOnIndex:(NSUInteger)pageIndex
160160
animated:(BOOL)animated
161-
completion:(void(^)())completion
161+
completion:(void(^)(void))completion
162162
{
163163
[self setLayouter:layouter animated:animated completion:^{
164164
if(completion) {
@@ -179,7 +179,7 @@ - (void)setLayouter:(id<SCPageLayouterProtocol>)layouter
179179

180180
- (void)setLayouter:(id<SCPageLayouterProtocol>)layouter
181181
animated:(BOOL)animated
182-
completion:(void (^)())completion
182+
completion:(void (^)(void))completion
183183
{
184184
self.previousLayouter = self.layouter;
185185
self.layouter = layouter;
@@ -188,7 +188,7 @@ - (void)setLayouter:(id<SCPageLayouterProtocol>)layouter
188188
return; // Will attempt tiling on viewDidLoad
189189
}
190190

191-
void(^updateLayout)() = ^{
191+
void(^updateLayout)(void) = ^{
192192
[self _blockContentOffsetOnPageAtIndex:self.currentPage];
193193
[self _updateBoundsAndConstraints];
194194
[self _unblockContentOffset];
@@ -244,7 +244,7 @@ - (void)reloadData
244244

245245
- (void)navigateToPageAtIndex:(NSUInteger)pageIndex
246246
animated:(BOOL)animated
247-
completion:(void(^)())completion
247+
completion:(void(^)(void))completion
248248
{
249249
NSUInteger previousCurrentPage = self.currentPage;
250250

@@ -265,7 +265,7 @@ - (void)navigateToPageAtIndex:(NSUInteger)pageIndex
265265

266266
offset = CGPointMake((NSInteger)floor(offset.x), (NSInteger)floor(offset.y));
267267

268-
void(^animationFinishedBlock)() = ^{
268+
void(^animationFinishedBlock)(void) = ^{
269269

270270
[self _updateNavigationContraints];
271271
[self _tilePages];
@@ -1056,7 +1056,7 @@ - (void)_removePageAtIndex:(NSUInteger)pageIndex
10561056

10571057
#pragma mark - Private - Incremental Updates
10581058

1059-
- (void)reloadPagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated completion:(void(^)())completion
1059+
- (void)reloadPagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated completion:(void(^)(void))completion
10601060
{
10611061
NSMutableArray *removedViewControllers = [NSMutableArray array];
10621062

@@ -1111,7 +1111,7 @@ - (void)reloadPagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated compl
11111111
});
11121112
}
11131113

1114-
- (void)insertPagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated completion:(void(^)())completion
1114+
- (void)insertPagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated completion:(void(^)(void))completion
11151115
{
11161116
NSInteger oldNumberOfPages = self.numberOfPages;
11171117
self.numberOfPages = [self.dataSource numberOfPagesInPageViewController:self];
@@ -1189,7 +1189,7 @@ - (void)insertPagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated compl
11891189
}
11901190
}];
11911191

1192-
void(^updateLayout)() = ^{
1192+
void(^updateLayout)(void) = ^{
11931193
if(shouldAdjustOffset) {
11941194
[self _blockContentOffsetOnPageAtIndex:(self.currentPage + indexes.count)];
11951195
}
@@ -1220,7 +1220,7 @@ - (void)insertPagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated compl
12201220
});
12211221
}
12221222

1223-
- (void)deletePagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated completion:(void(^)())completion
1223+
- (void)deletePagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated completion:(void(^)(void))completion
12241224
{
12251225
NSInteger oldNumberOfPages = self.numberOfPages;
12261226
self.numberOfPages = [self.dataSource numberOfPagesInPageViewController:self];
@@ -1284,7 +1284,7 @@ - (void)deletePagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated compl
12841284
}];
12851285

12861286
// Update the content offset and pages layout
1287-
void (^updateLayout)() = ^{
1287+
void (^updateLayout)(void) = ^{
12881288
if(shouldAdjustOffset) {
12891289
[self _blockContentOffsetOnPageAtIndex:(self.currentPage - indexes.count)];
12901290
}
@@ -1326,7 +1326,7 @@ - (void)deletePagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated compl
13261326
});
13271327
}
13281328

1329-
- (void)movePageAtIndex:(NSUInteger)fromIndex toIndex:(NSUInteger)toIndex animated:(BOOL)animated completion:(void(^)())completion
1329+
- (void)movePageAtIndex:(NSUInteger)fromIndex toIndex:(NSUInteger)toIndex animated:(BOOL)animated completion:(void(^)(void))completion
13301330
{
13311331
NSAssert(fromIndex < self.numberOfPages, @"Index out of bounds");
13321332
NSAssert(toIndex < self.numberOfPages, @"Index out of bounds");

0 commit comments

Comments
 (0)