Print option in iPhone - iphone

How to enable print option in iPhone apps

Printing in iOS is only available in iOS 4.2. Since 4.2 is still under NDA, any discussion of printing facilities in 4.2 would be a violation of NDA.
The one place where you can discuss 4.2 without violating the NDA is on Apple's Developer Forums. If you have an Apple Developer account, you can find the forum here (ADC login required): Developer Forums: iOS 4.2 beta.

Related

Can I update my iphone application for iOS7 only?

I have developed application for iphone4/5 with iOS 7 support. Recently I found issue in that and wanted to update application only for iOS7.
Does Apple allow me to update application for iOS 7 only? Do i have to give support for iOS 8 right now?
If you submit with Xcode 5.1.1, you'll compile with iOS 7's SDK (and your app will behave as it behaves currently).
If you submit with Xcode 6.0, you'll compile with iOS 8's SDK (and you'll have to update your app due to new API and possible bugs).
use Xcode 5.1.1 if you want to fix issues only for iOS7 for time been and submit the app..but users might face issues if they are using iOS8 on their devices.
if I understood you correctly, I believe you should check in code for the user's iOS version and then update based on that.
See How to check iOS version? how to do that.

Xcode 4.5 with iOs 6 issue in iOs 4.3

I was developing iPhone/iPad apps using XCode 4.2. With the recent update, I upgraded my XCode to 4.5 with iOs6. And I developed an iPhone app with this. But the issue when I run the app in iPhone 3GS with iOs 4.3, it crashes some times. I couldn't find any specific or common reason for this crashes. It happens randomly, not when doing a specific action. But it happens very rarely in iPhone with iOs 5 and iOs 6. I tried to track the issue using Instruments, but still I couldn't find any reason. Some memory leaks are there, but it wasn't the issue.
So, I have some guesses, may be it is happening due to the device is 3GS? Or because, some codes that come with iOs 6 not supporting in iPhone 3GS or iOs 4.3. In the Xcode it is not showing any warning.
So, I am not sure, is there any possibilities for my guess??
Also, I would like to know, now we have iOs 6, so when we develop new app, should we still support iOs < 5? Or can we specify it needs iOs 5 or above as requirement?
Please give me some suggestions.
Regarding your first question - "App crashing randomly". You have mentioned that your app crashes on all the iOS versions - rarely on 5 & 6 but frequently on 4.3. If this is the case, then as per my experience, this issue is mainly related to "Low Memory". To verify this, debug your app on device and check your Debugger giving you "Low Memory Warning". This is the way you will find your issue.
Now regarding your second question - "which iOS to support". Answer to this would be iOS 5.0 and above - YES. Not all the iPhone/ iPad users have updated their devices to iOS 6. Also some of the users can't because of device issues. So you must provide support for iOS 5.0 at least. As per the latest stats iOS device users are hardly using iOS 4.x but iOS 5.x users are plenty enough. A lot of apps in App Store don't provide support for below iOS 5.0. So go for iOS 5.0 and above. Rest it depends on your requirements like if the app is pretty simple enough then providing support for below iOS 5.0 is not a headache.

Would making a Youtube tutorial violate Apple's NDA?

I didn't attend WWDC and I'm just an iOS developer and I'd like to show off a few new features of XCode 4.2 in a YouTube video. Am I allowed?
Short answer, Nooooooooooooooooooooooo!
I am not a lawyer, but it is a safe bet no is the answer. All iOS developers sign an agreement saying that they can not talk about the new stuff in the beta. I have seen some youtube videos demoing the xcode 4.2, but that is probably a violation.
It is ok now that iOS 5 is now officially available.
But during Beta/Preview phases you should read the NDA and adhere to it. It says something along the lines that you can't make any information publicly available that you've learnt by accessing the beta builds and beta documentation. So there is only one correct answer: no, no, no.

Testing iPhone apps in iOS 3.0

Officially Apple let developers deploy apps that's compatible with iOS 3.0 to iOS 4.2. However there are some APIs and some hardware features that's not present in some devices or in some iOS versions.
However if you only have one testing device, and you want to try to install a clean iOS 3.0 to that, for testing purposes, what is the official way to do it? I tried looking all over Apple developer website and it does not give me anything.
I asked a similar question before: A TimeMachine taking my iDevice back to 3.1.2?
After that I did a thorough research on this topic. It finally turned out, that actually there is no official way for a developer to downgrade her or his own device back to an earlier iOS. Apple just doesn't allow that to happen.
However, in your code, there are many things you can do to make sure your app is supported in an old version iOS. Check this great post: http://cocoawithlove.com/2010/07/tips-tricks-for-conditional-ios3-ios32.html
If testing on the iOS Simulator is enough, you can achieve that by installing previous versions of the SDK which contains the older versions of iOS.
As for device, there is no quick way to switch between iOS versions on a single device.
I struggled with this for a while, and eventually gave up on downgrading and bought a used 1st gen iPod Touch, which can't be upgraded to 4.x so it's guaranteed to be 2.x or 3.x (2.x is easily upgraded to 3.x).
Now I test on that. Added benefit is that when testing on it you're at the same time checking the performance on a slower (slowest?) iOS device too.

Access call log in iPhone

Can I access the call log of iPhone through application. Is this feature added in iPhone OS 4.0??? As what ever I searched for OS below 4.0 and it is not there.
Thanks in advance,
VIshaL
It's not available in the 3.0 and earlier SDKs. The 4.0 SDK is currently covered by an NDA so I can't comment on that directly. If you sign up for the iOS developer program you can look at the documentation yourself.