isAvailableForServiceType always returns true?

旧城冷巷雨未停 提交于 2019-12-04 02:28:29
DzMonster

Did you run the that in Simulator?

It seems isAvailableForServiceType always returns 1 in Simulator.

Maybe you can test it in ipad with IOS6.

From my experience, I can confirm this is a bug in iOS Simulator 6.0. The isAvailableForServiceType method always returns TRUE for any service type on iOS Simulator.

On actual device running current iOS 6.0 it is working as expected.

you can test isAvailableForServiceType: using iOS 7.1 on which it is working with simulator as well.

Here What I checked

NSLog(@"Facebook Enabled : %d",[SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook];

Please check this.

I can also confirm that it's broken [i.e., returns True for all three services] in the Simulator (Xcode 4.5.1, iOS 6.0) -- but that it works properly running on a device (iPhone 4S, running iOS 6.0).

Easwaramoorthy K

isAvailableForServiceType returns true always in both iPhone and iPad simulators.

The same piece of code is working fine in the iOS 6 iPhone and iPad.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!