UIGetScreenImage the app is not getting the approval due to this method - iphone

HI i am using zxing API into my application and it says that the application cannot be posted to the App Store because it is using private or undocumented APIs:
Private Symbol References
UIGetScreenImage
can somebody help me out as soon as possible

ZXing 1.6, which was released yesterday, has switched to the AV Foundation classes of iOS 4. It's the real-time scanning approach that's allowed by Apple.
Update:
ZXing 1.6 comes with three iPhone projects:
Barcodes is the original iPhone app. It's still using the UIGetScreenImage API.
ZXingWidget is a library that you can include into your own app. It uses the new AV Foundation classes.
ScanTest is a sample app using ZXingWidget
So the way to go is to use the ZXingWidget.

ZXing is displaying the feed from the camera live on the screen, and using UIGetScreenImage to repeatedly capture the resulting image without the user having to do anything. (This is a very nice user experience because the user doesn't have to press a button to take a picture of the barcode; the app just keeps taking pictures over and over until it gets one that works.)
This technique used to be perfectly fine, but Apple has recently changed their policy and banned the use of UIGetScreenImage. In light of Apple's change in policy, your best choice now is to make it so the user has to press a button to photograph the barcode manually.
Since ZXing is open-source, this should be a simple matter of changing a few lines of code to now use [UIImagePickerController takePicture].

Related

Transitioning from Phonegap to a native app

We are looking to create an app for the educational industry. First app and we thought we could maybe start with Phonegap to speed things up, then transition to an Objective-C iPad app in the future.
Does anyone know what that transition would look like? We are hoping that it could be a v1.x to v2.0 update on the same app on iOS without having to install a new app. We are not concerned about Android users (sorry), the edu field is all Apple at the moment.
Thanks in advance
BITs
The transition would be as follows:
You shall learn Objective-C and the Cocoa Touch API in order to make a native iOS app.
You will then need to rewrite all of the HTML/CSS/JavSscript source code, to produce an equivalent application, in Objective-C.
(2.5 it might be tricky if your app talks to a webservice using AJAX etc. -- native networking is not at all as trivial as from the web browser from JS.)
An update in the AppStore shall be perfectly fine afterwards -- PhoneGap just uses a native 'skeleton' app to embed a web browser view, so no significant change will be required.

is there any single library for twitter sharing in ios4 and ios 5

I need to share one video url getting from my server in twitter.
And my app must be compatible for both ios 4.0 and ios 5.0.
I know that there is twitter+oauth library for ios 4.0 and twitter inbuilt library for ios 5.0. And my functionality is twitter library need to ask user credentials only once for twitter authentication and need to post that video url in background with out asking user permission.
From the second time onwards video must posted in background.
As per my knowledge we have different libraries we need to use but is there any solution that do implemant my task with one library.
Please help me.
For a beautiful implementation, check out DETweetComposeViewController.
It will provide you with a UI that looks almost identical to what iOS5 users now are growing accustomed to. The great point is, it works on iOS4 and iOS5 flawlessly.
GetShareKit was a basic library created by Nate Weiner that's now outdated. If you check it's GitHub source, the last commit was sometime in 2010. This version is buggy and has about 20+ compile warnings. this uses an older version of the Facebook and Twitter sharing mechanisms that are now deprecated and also, buggy. Clicking Twitter's "Share", for eg, won't dismiss the sharing dialog.
So, a bunch of developers forked off the original library and now maintain what's called ShareKit 2.0 SDK. If you check the wiki, you'll learn that all new services like Foursquare, LinkedIn, InstaPaper, EverNote have been added to this new version. Happy Coding!

Phonegap app not opening camera

I have an app that I hired a company to build using Phonegap. The company is no longer able to support me with launching the app onto iTunes.
I have loaded the app and can compile it in Xcode. However the camera function is not working. I have tested the app before from a file they sent me and the camera function worked.
Is there special settings that you have to set in xcode 4 besides what is typical in order to use the camera?
You may be compiling for a different SDK. Make sure you are using the same one as before.
It shouldn't matter about the SDK you are working with.. the whole point of phonegap is to expose the native API's to javascript. So it's not the SDK, its the javascript. I am actually working on this now.. I will get back to you with my findings.

Making an app that changes background of the iPhone's spring board

I've tried to look over but couldn't find what I really want.
I'm planning to make something similar to Icon Skins app on app store; That is an app that can change your spring board background from a selection of images in a gallery.
I have a bit experience on coding with xcode and objective-c (I used cocos2d a while ago).
Could anyone give me a direction where should I start from? Is there any framework I could work my app on other than the iOS SDK itself?
Thank you in advance,
What you are going to need is a server to load the images from and a way to display the images in the app. This WWDC 2010 Session is a great tutorial to use in terms of displaying the actual images. After the images are displayed, you will need a way for the user to save them to the camera roll and change it to their background, as there is no API that will automatically change the wallpaper (as far as I know).

Barcode Reader for 3G

I am newbie to iPhone application. But recently I saw a post asking for Barcode Reader for 3G iPhones. And people(including me) have referred to zxing which works on 3GS or later and if you want to make an appication for 3G then better you buy it from QuickMark or RedLaser to get 3g scanning.
So I planned something and need several information from you all
There are lots available on appStore. One of them is pic2shop(Which is a free application).
But what I want to know is:
What exactly is it done to recognize the barcode and generate code?
Is there any website or link to which when image of barcode is send will respond with the code generated or any API which does the same i.e. Taking picture and generating code.
And Secondly From Where does we get the information about the produce related to that barcode code.
Hi we recently had a product which required bar code scanning functionality, in the end after evaluating a lot options we went with zBar but it does not work on iPhone 3G it requires 3GS or above.
zBar is an open source SDK you can download it from sourceforge.
What we're doing right now is scanning bar codes using the zbar SDK & then calling upcdatabase.com API through xml-rpc to get the information about the product back.
And its working pretty well.
If you do not want to pay redlaser or others for SDK I would recommend using this approach. But of-course the downside is iphone 3G is not supported which I think does not represent many devices & also recently Apple has also dropped its support for its upgrades as iPhone 3G users will not be able to upgrade to iOS 4.3.
I actually own a 3G iphone & its very slow on iOS version 4.0 .