iphone

Create Iphone applications using Java

Does anyone know where or how to obtain a Java example to create iPhone apps? What I am looking for is just using Java (no objective-C or just the bare essential objective-C) and no interface builder, source only. ...

NSMutableURLRequest and redirection

Hello stackoverflow, So I am trying to create a request that will automatically follow the redirects in its process. For some reason this is not working, this is what my delegate method looks like. Do I need to do anything else for this to function properly? Thanks! -(NSURLRequest *)connection:(NSURLConnection *)connection w...

how to create a web view stop button programmatically

i want to add a button to toolbar of webview without using IB ,so i must do it using programmatically how to do it? ...

TableView deletion Problem

Hi Friends, I am trying to delete a row from a UITableView. My UITableView is populated from a NSMutableArray named TableData. When i am deleting a row and reloaded the tableview, it shows that the last row has been removed [not the selected row]. But when i NSLog the contents of mutable array it shows that the selected row has been re...

IPhone/IPad Credit Card Swipe

Hi, I want to develop an application for iOS devices (iPhone, iPad, iPod Touch) that has the ability to interface to a credit card swipe. There are a bunch of offerings (PaySabre, Square, etc.) that are a combination of a service and a device. For my purposes, I want to be able to purchase just a device that has an API etc. that I can...

UITabBarController with more than six icons

Hi there, i'm developing an iPhone application and i'm implementing the navigation among views with the UITabBarController. The documentation says : "The tab bar has limited space for displaying your custom items. If you add six or more custom view controllers to a tab bar controller, the tab bar controller displays only t...

Why is this pointer type incompatible

This is the code Dest.h #import <UIKit/UIKit.h> #import <CoreGraphics/CGPDFArray.h> @class Model; // snip @interface Dest : NSObject { CGPDFArrayRef destArray; DestKind kind; } + (id)destWithObject:(CGPDFObjectRef)obj inModel:(Model*)model; - (id)initWithArray:(CGPDFArrayRef)array; Dest.m @implementation Dest + (id)d...

How can I tell my app is running on iPhone4 so I can load the correct size of image remotely?

I know the locally I can use the @2x images, how do I do this for remote images? I just need to know whether I am on iPhone / iPhone 4 and then determine the image width & height to load. ...

Any ideas how to solve this problem?

I developing a system that consist of 2 units; 1 Android tablet and 1 iPhone. My users will have to identify themselfs to the Android tablet (this should be done as user-friendly as possible with as few steps as possible and in a secure manner, meaning it should not rely on gps that is not exact). I have looked at various techniques, but...

iPhone App - Hide picker show keyboard and hide keyboard show picker

in the iPhone app, i have both the text field and picker in the same window. I want the picker popup to disappear when user clicks on textfield and keyboard appears. Similarly keyboard should disappear and picker popup should come up when user clicks on picker. Any sample code? ...

Use ipad sdk background on a web page

How can I use the textured backgrounds that came with the ipad sdk in a web app? ...

iphone keychain items persist after application uninstall?

I am playing with idandersen's scifihifi-iphone code for keychain and came across the following behavior - I set the password using, say [SFHFKeychainUtils storeUsername:@"User" andPassword:@"123" forServiceName:@"TestService" updateExisting:YES error:&error]; Then delete test application from device and install it a...

UIAlertView Question

Hi, I have a small doubt. I have a NSObject class where I am trying to display an alert view. So after the alert view is displayed when I tap on OK button I want to push a navigation controller onto the stack. Can I push a navigation controller from general NSObject class? Please let me know guys..thanks for your time.. This is the code...

Saving a dictionary to the iPhone is not working?

Been a tough week, will try to make this as clear as possible. Appreciate you taking the time to read. Hi, I'm sending a registration request to a server. A user object in jSon is returned, I parse the jSon and save the jSon dictionary phone as a method on my User class. However, whenever I load the user from the phone - by reading the ...

Can I use singleton class in a static library for iPhone?

Hello everyone, Is possible make a static library with a singleton class inside? Because I try it but without success. ...

UITableViewCell set Border

I have a normal UITableViewCell with custom colors, but how can i change the border? Currently it looks very ugly: http://i.imgur.com/QzFFY.png (i am not able to post images :( ) I only want a tiny little white border. ...

Using xcode build script to change icon.png / app name (iphone)

Anyone have any idea how to use xcode's build rules to swap out the icon file and application name depending on the appid? I'm building multiple apps that all build from the same binary. I'm hoping to have the icon and app name be dependent on the appid or something of this nature. Does anyone have an good resources on xcode build s...

addsubview issue at window

hi, i want to add two subviews to window in my AppDelegateController. both in landscape mode. when i add the first view, it is in landscape (that's fine), but when adding the second, it is automatically in portrait mode. any advice? thanks + regards that's in my AppDelegate.m [window addSubview:viewController.view]; CGRect frame = s...

53 * .01 = .531250

I'm converting a string date/time to a numerical time value. In my case I'm only using it to determine if something is newer/older than something else, so this little decimal problem is not a real problem. It doesn't need to be seconds precise. But still it has me scratching my head and I'd like to know why.. My date comes in a strin...

Does NSHTTPCookieStorage persist across apps?

Hello all, So I was just curious if the NSHTTPCookieStorage was persistent across applications, or local only to the current one. I want some cookies gathered in another app to be accessible in a search app. Is that how it works? Thanks! PS: This is on the iPhone or iPad. ...