iphone

iPhone UIView Animation Disables UIButton Subview

So I've got a problem with buttons and animations. Basically, I'm animating a view using the UIView animations while also trying to listen for taps on the button inside the view. The view is just as large as the button, and the view is actually a subclass of UIImageView with an image below the button. The view is a subview of a container...

How to display a set image while UIWebView is loading?

I have an iPhone application with TabBar and WebView. I would like to have a view with an image that pops up over the webview every time I send a new page to load and disappears when the page is loaded. How can I accomplish that? ...

Can Mac OS X Leopard & hence iPhone SDK be installed on the any of the new Intel i3/i5/i7 processors?

I know that it can be installed on Core 2 Duo & Dual core processors. I am using it right now.But,I am planning to buy new machine & wanna make sure that if I buy i3/i5,should be able to install Mac OS X & able to do iPhone development. Thanks. ...

Is there a way to find out if an iPhone / iPad app is installed already?

I'm writing a freeware version of an app and would like to check if a user already has the unfree version installed, and print a message whose contents are conditional on the results of the installation check... anybody know if this is possible? the closest I've come to a solution is to make use of the CFPreferencesSetValue API with a k...

How Would I Update Data Everyday In Iphone App

I am creating an iphone that needs to get data daily then when the app opens the app displays the data basically. What is the best way to.... A. Store the data (a sqllite db that I delete every data then populate?) B. How would I get the data as well as what form of data can I read into the db (xml?) I was thinking I have to create a ...

moving CGPoint a certain distance along a certain heading...iphone

this seems like such a simple problem but I have been unable to find an answer (and im no good at math). I am trying to move a UIView to a new CGPoint X distance away along a certain heading. What is the formula for determining the new coordinates? (i do no want this to be animated, just an instantaneous move) something like: x = 100;...

Using Xcode to switch configuration profiles between development/staging/production

I have an iphone app that I want to be able to configure to configure for different serves that I have in a multistage deployment Currently I have them in three .plist templates (containing urls, API keys, etc.) that I switch between, but that is getting annoying and since XCode has the different build configurations, I was wondering if...

iPhone - ABPeoplePickerNavigationController: Show "Phone" properties but not the Ringtone

Using the code below, I'm bringing up a person picker so the user can choose either a phone or an email address. I've set the displayable properties to Email and Phone, but the "Ringtone" property is visible in the phone group. Given the purpose of this instance of Person picker, the Ringtone choice makes absolutely no sense to display...

How can I programmatically get the Bluetooth MAC address of an iPhone ?

I'm trying to do some proximity detection of iPhones but I need to get their Bluetooth MAC address programmatically. Does anyone knows how ? I assume Bluetooth is activated but no device is paired with the iPhone. ...

NSDateFormatter - set device language as locale?

Hey. I'm trying to get the iPhone to display dates formatted by an NSDateFormatter in the current device language. I have tried setLocale:[NSLocale currentLocale], but that only returns 5 instead of May (or Mai, as I want it to be). EDIT: currentLocale shows May (english). systemLocale shows 5 (I think systemLocale is Norwegian), and ...

how to read emails from an iPhone app

I am trying to implement this: an iPhone app will download user's emails(based on user settings) from the email server (e.g. gmail.com) through IMAP protocol. Would like to download email text as well as attachment. Is this possible? Are there open-source or sample code for this work already? Much appreciated! ...

iPhone: “Unrecognized Selector Sent to Instance” Error

I’m trying to implement a partial overlay modal in my app with the code from “Semi-Modal (Transparent) Dialogs on the iPhone” at ramin.firoozye.com. The overlay functionality works and it slides the modal into view, but calling any IBAction from the modal's controller causes an “Unrecognized Selector Sent to Instance” crash. I recreated...

How to blur image while downloading? ( Like Facebook does )

Can anyone point me in the direction of blurring an image while the rest of it downloads? Its almost as if Facebook is downloading a percentage of the image, then blurs it while the rest is downloading? if that makes sense..? Thanks in advance! ...

How do I switch from a UIView to a UITable View?

I am writing an app that does not utilize a navigationController - there is only one area that requires a UITable. However, now I am hitting a roadblock when I go to load in that (table) view, with a method such as: searchViewController = [[SearchViewController alloc] initWithNibName:@"SearchViewController"...

iPhone Modal View Controller seperate in ViewController

hi! In my project most of my code is in my UIView subclass. In this subclass i want to call Modal View Controllers functions. As I understand those functions need UIViewController subclass to run and not UIView, where my code currently is. (Runtime stops at warning: 'View' may not respond to -presentModalViewController:animated:'). My...

Unknown and unreproducible crash causes App Store rejection

After submitting our application several times, we continue to receive the following response: Thank you for submitting My App to the App Store. We've reviewed your application and determined that we cannot post this version of your iPad application to the App Store because My App is crashing on iPad running iPhone OS 3....

UITextView: How to programmatically set selectedRange and becomeFirstResponder?

I have a UITextView containing a document. If the user touches the document, the insertion point (selectedRange property) is set appropriately and the UITextView becomes the first responder (keyboard appears). YAY! How can I do the same thing programmatically? Let's say I have a button titled "Edit at character 1,000". I want that t...

how can I get my fixed-width mobile website to always appear "fully zoomed in"?

how can I get my fixed width site to always appear "fully zoomed in" on webkit (iphone and android) browsers? right now, it looks fine on an iPhone and "too small/zoomed out" on an Android phones that have higher resolution. i'm trying this viewport: <meta name="viewport" content="user-scalable=yes, width=device-width, target-density...

UIActionView Opens Higher than it Should

I have an Action Sheet that is called from my root view controller using the code below. That view has a Toolbar on the bottom of the view measuring 44 pixels high. The problem is when the Action Sheet opens it's not at the bottom of the view, the bottom of the Action View is about 20 or so pixels above the bottom of the view so some of ...

How do I go about including the Tortuga 22 NinePatch library to my XCode project?

Hello CocoaTouch experts! First of all, there is finally NinePatch support for the iPhone, BIG thanks to the Tortuga 22 team for that. Unfortunately for me I have not been able to add their library to my project. What is NinePatch? The Tortuga 22 blog post. The source code at git hub. If I just drag and drop the source-files into my...