[ios] Fixed style count assertion

This commit is contained in:
Minh Nguyễn
2016-04-10 14:02:35 -07:00
committed by Minh Nguyễn
parent 1c7c5af69d
commit bbde70e3f0

View File

@@ -452,7 +452,7 @@ static const CLLocationCoordinate2D WorldTourDestinations[] = {
unsigned numMethods = 0;
Method *methods = class_copyMethodList(object_getClass([MGLStyle class]), &numMethods);
unsigned numStyleURLMethods = 0;
for (NSUInteger i; i < numMethods; i++) {
for (NSUInteger i = 0; i < numMethods; i++) {
Method method = methods[i];
if (method_getNumberOfArguments(method) == 2 /* _cmd, self */) {
SEL selector = method_getName(method);