iphone

Install AdHoc profil + app on iPhone error (other devices work)

Hy. I've got an iPhone app (Base SDK 3.1) and the fitting AdHoc profile. I was able to install the profile and the app on multiple devices, but on one device I can't get it installed. When I look at the device with xCode's organizer or the iPhone Config utility, no provisioning profiles are installed. I checked the UDID from the devic...

Capture screen on iphone as UIImage?

I have been reading about how to capture the current screen of the iPhone in code and get it as a UIImage. From what I have understood Apple now allow us to use UIGetScreenImage(void) also when submitting apps to App Store, is that right? Is this the way to go or is there a new better way of capture the screen? Thanks! ...

UIWebView,Modal ,get the event in the login form and maintain the session

HI Im implementing the UIWebView in my application where,we have login screen in the UIModalPresentationCurrentContext.in that the user will give the login details and enter /click the login button.but it takes the next page in the same modalPresentation.i need to close the modalpresentation.when the user presses the login button and h...

Performances obtained when compiling with the LLVM 1.5 compiler in SDK 4 ?

The question is strictly related to the compilers available in the SDK 4. Are you experiencing improved performances when compiling your applications using the LLVM 1.5 compiler or the LLVM GCC 4.2 compiler (uses GCC as a front-end) with respect to the traditional GCC 4.2 compiler? ...

White Color to RGB not correct.

Check out the code const CGFloat *c = CGColorGetComponents([[UIColor whiteColor] CGColor]); slider1.value = c[0]; slider2.value = c[1]; slider3.value = c[2]; c[2] is getting 0. For whiteColor all RGB values shld be 1.0. Why its not returning correct value for the blue component? Any code snippet? for getting RGB values from white c...

purpose of using NSURLConnection while calling xml web-service .. ?

why we are using NSURLConnection object in xml parsing ie. for eg: NSURLConnection *theConnection=[[NSURLConnection alloc] initWithRequest:theRequest delegate:self]; and then NSURLConnection delegate methods invoked like: - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error{ [connection release]; ...

Using bengottlieb / Twitter-OAuth-iPhone, running on iPhone device

Got the source ["bengottlieb / Twitter-OAuth-iPhone"][1] I added the existing folder "Twitter+OAuth" to my project. Fixed Target to include libxml2.dylib and libOAuth.a Fixed Header & Library Search Paths, just like DEMO project did. Building itself is fine. Only showing warnings about MGTwitterEngine's parsing issues. However, when I ...

iPad Frame programmatically doesn't match with IB???

Hi everyone, I'm trying to draw 2 UITableViews programmatically on a landscape iPad. I drew it first in IB to get the values for x, y, width and height from inspector, then programmatically i create CGRects with this parameters, but the final result is not what I saw in IB. what units uses CGRecktMake to measure the frame? The UITable...

How to send authenticated requests to Google Reader?

It seems that Google has disabled the old way of sending cookie SID to their Google Data Services, specifically Google Reader. This way does not work at least for me: //create request NSString* content = [NSString stringWithFormat:@"accountType=HOSTED_OR_GOOGLE&Email=%@&Passwd=%@&service=ah&source=myapp", [loginView username].text, [lo...

Setting up new iPhone Dev Environment for existing app

Hi All This might be a weird question, but I'll try anyway. I set up my dev environment with certificates etc on an old MBP, built an app and released it on the App Store. I've since upgraded to a new MacBook Pro, but didn't move over any certificates, so can no longer build my application. Have I completely screwed things up? How can...

error: request for member 'multitaskingSupported' in something not a structure or union

I tried to run this code on iPhone Simulator 4.0 and get that error //#ifdef __IPHONE_4_0 UIDevice *device = [UIDevice currentDevice]; if ([device respondsToSelector:@selector(isMultitaskingSupported)] && device.multitaskingSupported) { } //#endif Does anyone have worked on the Multitasking with Simulator before ? Pl...

iPhone Checkboxes à la Mail

After reading the iPhone Human Interface Guidelines, I notice there's little mention of checkboxes in the style that one may encounter them on the desktop or web. Checkboxes are generally handled by UISwitchs on the iPhone, but for an app I'm presently working on, they're really not the right control. Instead, the control you'll see in ...

how to detect idle user in iphone-sdk

In my Application I want to call Logout Function if user is idle for certain amount of time how to accomplish this answer doesn't work for me http://stackoverflow.com/questions/273450/iphone-detecting-user-inactivity-idle-time-since-last-screen-touch if i subclass my app delegate class from UIApplication and implement - (void)sendE...

Playing audio that is retrieved from url

Hi, I am getting a list of songs and its corresponding images from a url.The url is a json url. When i click the list a corresponding song is played. I have used AVFoundation Framework to play the song. Now the issue is that i need to play the next song after the playing of first song is completed. The corresponding images also must loa...

Title for section in UITableView - remove text shadow ?

I have a grouped UITableView with black background color. Thus the gray section headers with the white drop shadows are unreadable. Next thing to know, the section height varies depending on language and section. How to solve this the most easy way ? If I implement viewForHeaderInSection I also need to implement heightForHeaderInSectio...

Intranet web sites via VPN

I have created an App that gets data from Web Services on an In*TRA*net web site. In order for my App to see these sites I have to turn on the VPN that is setup for our company intranet. So when I turn on the VPN it asked for authentication. That has to be turned on before my App launches because I know of no way to access the VPN via co...

iphone facebook session failing. why?

I'm learning how to integrate facebook api in iphone app. First I visited facebook website, went to applications->developer and created an app. Noted down private key and secret key. Now, I'm using FBConnect sample code. I am using my keys in FBConnect app. And I set session proxy as static NSString* kGetSessionProxy = @"SessionViewCon...

Error while releasing applications in to iPod

hi, friends I am getting the error A signed resource has been added, modified, or deleted while releasing applications in to my iPod. previously by mistake i tried releasing the same application in to iPod but it didnt run as there was errors in my application. After rectifying the errors when i tried releasing the app its showing the a...

iPhone sdk for OSX 10.4

On the apple website I can only see offered the iPhone sdk4 which indicates it will only operate on OSX10.6/Snow Leopard. Is this the case? And if so, where can I get the previous sdks so that I can work on my computer with OSX10.4? ...

How to create Custom TabBarItems?

Hi, Is there any way to create the custom tabBarItems. Here is the reference of how i want those items to look like. Thanks, Yogesh ...