SwiftKickMobile / TLIndexPathTools

TLIndexPathTools is a small set of classes that can greatly simplify your table and collection views.
tlindexpathtools.com
MIT License
347 stars 60 forks source link

DataModel's numberOfRowsInSection: etc. methods should return NSUInteger #34

Closed fatuhoku closed 9 years ago

fatuhoku commented 10 years ago

In Xcode 6, there are many more warnings about the need to explicitly cast NSInteger and NSUInteger values into long and unsigned long respectively in any string formatting statement, due to ever more diverse architectures being introduced to iOS.

It'd be great if TLIPT can be consistent with intentionally unsigned / signed integer values.

One such method is e.g. https://github.com/wtmoose/TLIndexPathTools/blob/0c0b1070c238153058f9d22fa66c58b86c6da1e0/Examples/Minimal/Minimal/ViewController.m#L35

EDIT: I'm aware that the UIKit API uses NSInteger right now — why is that?