StefanLage / SLPagingViewSwift

Navigation bar system allowing to do a Tinder like or Twitter like. SLPagingViewSwift is a Swift port of the Objective-C of SLPagingView
MIT License
216 stars 35 forks source link

I Found a Bug when I added a new page #6

Open fbriou opened 9 years ago

fbriou commented 9 years ago

The views did not correspond to the right menu icons (The order was 0, 3, 2, 1 instead of 0, 1, 2, 3)

So checked your library and I found that it was because of the NSDictionary which was not in the right order when it contains 4 elements (I did not understand why) I made a correction when browsing the dictionary, using keys instead of : enumerateKeysAndObjectsUsingBlock I worked like this.