Closest iOS 5 compatible equivalent of SLComposeViewController? - facebook

In am using SLComposeViewController for posting on Facebook with iOS 6. In an effort to have a consistent user experience and save development time, are there any existing code snippets or libraries with similar behavior and feel to SLComposeViewController that work in iOS 5?

Use DETweetComposeViewController which looks similar to SLComposerViewController and compatible for ios 6.
check this http://www.developers-life.com/facebook-compose-view.html
this may help you.

Related

What is the Path for Call_History.db in iOS 6. Is it same as that of iOS5?

I am new at iPhone development. I want to access iOS6 call_history. My code work for iOS5 but not work for iOS6. please help me to solve this problem. Many Thanks.
You cannot access the call log using the SDK and approved APIs. There are some workarounds, as you probably already know. The only option I know about is accessing call_history.db.
Take a look at this tutorial. Unfortunately for you, security has been made more severe, and you only can access that file in iOS < 5.0 (and probably all jailbreacked versions).

Possible to still produce iOS6 style apps using xCode 5?

for now I am keeping my app in iOS6 style until I get a chance to update some of the artwork. I am wondering, if I update to xCode 5, is there a way to compile my code so that it will still produce the iOS6 style and install it on my device with iOS7? Getting a bit tiring uploading my code through TestFlight...
It's not the Xcode version that provides the assets, its the iOS SDK.
That means apps which are compiled using iOS 6 SDK and lower will use the older style default assets, however apps which are compiled on iOS 7 SDK will use the new style controls.
Your best bet would be to create assets and style the controls to your specification if you want to use the new Xcode.
No, Apple has changed the look of all system components. As far as I know, it is not possible to force your app to use the old style on iOS 7.
You would get the new look on iOS 7 (when using iOS 7), When your app would run on iOS 6 it would look like it was on iOS 6.
It's pretty simple and straight forward. You don't have to do nothing just make sure it looks good on iOS 7 also.
To be more clear if you use AlertView you would get the new style when your app runs on 7 (with parallax etc.) and old look when run on 6.
My suggestion to you is just test it on iOS 7 and fine tune graphics if needed.

Targeting iOS version, and which features will be available

I am learning iOS development. And I had couple of questions, hope people don't mind
answering them here.
I was reading a chapter about ARC in a book. It seems nice. I've heard it is for iOS 5. Now, my question is, if I want my app to be available for iOS4 - does it mean I can't use ARC? (that would be a shame).
Also, I am not sure yet, for which version of iOS I should target my app. How is this reflected on my code? For example, I suppose if I target iOS5 I can't use features of iOS6 right? But if I target iOS6, then my app won't run on iOS4?
Any tips in this direction appreciated.
I agree with David's comment and you should concentrate on iOS 6, but for information and future you would construct your app using a combination of weak linking and respondsToSelector: so that your app can use features of newer versions of iOS but still be compatible with older versions.
NO Arc can be only for iOS 5 or later but if you want your older code to be ARC enabled then you can Refactor->convert to ARC for that file. Also if you want your code to be Arc disabled then for each file you can write down "-fno-objc-arc" in build settings.
Ya new features wont be compatible for your older versions. So make sure you should be very specific for your requirements. The requirements of your App will make you conclude which iOS version you should target.
Hope this helps :)
You can make individual file non-arc as per your requirement in Project.
It is very simple way to make individual file non-arc.
Follow below steps :
Disable ARC on individual file:
Select desired files at Target/Build Phases/Compile Sources in Xcode
Select .m file which you want make it NON-ARC
PRESS ENTER
Type **-fno-objc-arc**
you can use ARC in ios 5 and above but not in IOS4.
If you targeting your app to IOS 5 then you will be able to use ARC as well. If u target it to iOS 5 then it will work on IOS 6 as well (only the deprecated features wont work on iOS 6).

Simple posts to Facebook and Twitter iOS 5 & 6

I'm currently implementing a simple button that posts to social networking sites (giving my app a little exposure, you know the drill). However, I'm a little confused by all this social networking stuff. On one hand I know iOS 6 has a really nice framework for FB and Twitter (Social.framework) but for iOS 5 it's a little different. iOS 6, I think I've got figured... I find it a little weirder when we go into iOS 5 however. From what I understand Twitter was already integrated into iOS 5 and can be accessed using the Twitter.framework and Account.framework frameworks. What I don't get is in order to support both 5 & 6 for Twitter do I have to use Social.framework, Twitter.framework and Account.framework to support everything? I.e. two different methods depending on iOS version. Or, if I use the latest SDK will iOS 5 twitter work with Social.framework? That Twitter covered.
Now for Facebook, how do I go about posting in iOS 5? I'm pretty sure Social.framework won't work in iOS 5, even if I build the app with latest SDK. Therefore I think it's inevitable that I'll have to have two different methods which run depending on the iOS version installed. Is that correct? If so, how do I go about integrating FB into iOS 5? Do I have to use the SDKs provided by Facebook?
So to summarise my questions if all that was a little wordy.
1) Can I incorporate Twitter-posting into my app using only Social.framework for both iOS 5 & 6, or do I have to do one method using Social.framework (for iOS 6) and then another method using Twitter.framework and Account.framework (iOS 5)?
2) I can use Social.framework for Facebook in iOS 6, but can't for iOS 5, therefore, I have to do two separate methods, one with Social.framework (iOS 6) and then one with the FB SDK (iOS 5), correct?
Thanks in advance, Regards,
Mike
1) Social.Framework is available only on iOS6+ so you have to split between the two frameworks (or you can use only Twitter.Framework even though some methods have been deprecated on iOS6)
2) You can use the Facebook SDK both on iOS5 and iOS6 (latest version for iOS at the time i write this answer is 3.5). The Facebook SDK already takes care of using the user's Facebook account on iOS6 or relying on the Facebook app on iOS5 or iOS6 when the account is not already configured in the phone

Submitting apps for ios5 or above?

I've recently submitted an app to the app store for ios6 only, since going live I now have people asking to support ios5 now! Can someone advise how this can be done?
Thanks.
Change the deployment target to iOS 5 and build for it. Assuming you aren't building against any iOS 6 only API's, you should be good to go. If you are using anything iOS 6 only (auto-layout, etc) you will have to revert those before submitting.