iOS 7 / iOS 8 fixes

Fixed some warnings,
Added missing framework import in header (UIKit)
Using iOS7 apis when applicable for string size (now works better in iOS7 and iOS8).