dfmuir / KINWebBrowser

A web browser module for your iOS apps.
Other
838 stars 167 forks source link

supported interface orientations returns UIInterfaceOrientationMask i… #36

Closed tiagomartinho closed 9 years ago

tiagomartinho commented 9 years ago

…nstead of NSUInteger to eliminate Xcode warnings screen shot 2015-09-09 at 21 29 57

I have this issue in a swift project using cocoa pods in Xcode 7 supporting an iOS 9 app

hons82 commented 9 years ago

I've seen this on another library that I'm using. Might be the solution

tiagomartinho commented 9 years ago

The commit I made solves the warning: Instead of: -- (NSUInteger)supportedInterfaceOrientations { I do: +- (UIInterfaceOrientationMask)supportedInterfaceOrientations {

EvgenyKarkan commented 9 years ago

Yes - you should cast return type. I did it too :)

dfmuir commented 9 years ago

Thank you for this pull request. I have merged it with master and deployed to CocoaPods. KINWebBrowser 1.3.1 now has this change and should build in Xcode 7 with no warnings.