iphone

IPHONE: provisioning profile expiring every 2 months?

Is it just me or the provisioning profiles created on the developer portal expire every 2 months? Why is that insanity? Is there any way to create a provisioning profile that will last for the entire period of the annual subscription? I have contacted Apple but they simply did not answer. Is Apple insane? any thoughts? ...

attachment doesn't displayed in mail which is sent through iPhone

I have send an attachment through iPhone application. But When I see the mail, I can see the upin that shows that something is attached. But when I open the mail I couldn't found any attachment? What is the problem behind this? Does anyone have faced same kind of problem? Thanks in advance for sharing your great knowledge. -(IBAct...

Ad Hoc Wifi Connection Between iPhone & Mac - Possible?

Hey guys, I was just wondering if it is possible to set up a data transfer tunnel between an iPhone and a Mac using the Wifi hardware present on both devices? My main objective is to transfer data from my iPhone to my Mac through an app along an ad hoc wifi connection. If there are any other methods you would like to suggest, then pleas...

UIView showing up in a UITableView section it was never added to when scrolling

I've got a UIView that I'm adding to a cell's content view in a particular section (Section 1 specifically), as shown below: [cell.contentView addSubview:self.overallCommentViewContainer]; When I quickly scroll up/down - the UIView appears in Section 0 - even though I never added the UIView to any of the cell's in Section 0. Here's a...

Is it possible to reload a view when a tab bar item is pressed?

It doesn't seem like each time a view is presented via the tab bar, that the viewDidAppear method gets called. I've searched as much as I could on this issue, but haven't really found a definitive answer. Are there any suggestions or workarounds to this? ...

Retrieving most recent entry SQLite3 for iPhone

Hi, I've got a problem that I just can't nail an answer to. Basically I want to retrieve a specific column for the last entry in the SQL database. I've got this so far but it never goes into the last if statement and thus I never get an answer. -(int) retrieveLastNumberDrawn { if(detailStmt == nil) { const char *sql = "Select Num...

iPhone hard computation and caching

Hi people. I have problem. I have database with 500k records. Each record store latitude, longitude, specie of animal,date of observation. I must draw grid(15x10) above mapkit view, that show the concentration of specie in this grid cell. Each cell is 32x32 box. If I calculate in run-time it is very slow. Have somebody idea how to cache...

Initialize UIPickerView

I want to create a UIPickerView with the easiest way possible, because all of what I know Is not enough to help me Ok what I ment is that I am trying to get a UISegmented that will end up creating a UIPickerView but I want to create a UIPickerView that shows up when I select one of the segments in the segmented control animated, and als...

How to add the private framework in iphone os to our app?

HI ,, Is there any to add the private framework in our app which is not released by apple ? Can we use all the private framework by any way aur we have any restriction to dump that framework ? After using that framework apple accept our app or not ? Thanks ...

NSXMLParser initWithContentsOfURL timeout

How can I set a timeout when I am parsing a feed using initWithContentsOfURL. Sometimes our feeds return a blank response and then it will just try to parse the feed forever. I want to set a timeout of 30 seconds or so that will pop up a UIAlertView and then try and reparse the feed. NSURL *feedURL = [[NSURL alloc] initWithString:...

UIGetScreenImage - Private API

I was using UIGetScreenImage in my app, however, as everyone knows Apple is rejecting apps using private APIs. I have researched alternate ways to do this with takepicture but you get different size images as well as the annoying snapshot sound. Microsoft tag. Quickmark and Redalaser all use the UIGetScreenImage (it's obvious) but I want...

Converting between unique NSIndexPath and unique NSUInteger (or int)

Is there a better way than what is proposed here to create a one-to-one mapping between an table view cell's NSIndexPath and a unique NSUInteger or int, in order to create a unique tag property value for a widget in the cell (a UIProgressView)? The link adds methods through a UIKit category extension that converts between NSIndexPath an...

Loading circle animation in iphone

Hi, How can I display the loading screen animation in iphone? I mean the bars arranged in circles. So that I can use it while some of the part of my app is loading, like initializing. Or should I create may own animation loading? Thanks. ...

How do I make a UIPickerView in a UIActionSheet

Just want to know how I would make a UIPickerView in a UIActionSheet with a simple array. ...

What happens when: viewDidLoad before drawRect?

I am working on an IPhone project where I set up some drawing parameters external to view.drawRect in a procedure called -(void) reset. I call this from the viewController.viewDidLoad method to get the parameters set before the drawing occurs. But it doesn't seem that my parameters get acknowledged in the initial display of the view. ...

Signal 11, segmentation fault on iphone App exit

I have an iphone app. It seems to run fine. When I connect to a provisioned iphone to Xcode and run the App, the console log in the Organizer window, always complains about a Segmentation fault when quitting the app with the home key. Has anyone else seen this, and do you have an idea of what the problem might be? I use a thread to l...

iPhone - multiple text field search bar

I'm implementing a location based keyword search. If anyone has seen Yelp's search bar, it is what i'm trying to do. Basically once the search bar is clicked i want to provide one text field input for the keyword and the other for location. What UI element would I subclass? How would I go about this? ...

Prevent automatic popToRootViewController on double-tap of UITabBarController

The default behavior of a UITabBarController is to pop the contained UINavigationController to the root view controller when a particular tab is tapped a second time. I have a particular use case where I'm wanting this to not work automatically, and I'm having a hard time figuring out how to prevent this. Has anyone run into this, and i...

zoom animation for iphone OS 2.0

Hi, I notice in the documentation for UIScrollView that zoomToRect and setZoomScale method only works for iphone OS 3.0. Is there any alternative for this API for iphone OS 2.0 or I should create may own animation for scaling? Thanks. ...

A Leak in Apple's iPhone project template?!

Today, I tried to fix a leak in my newly created iPhone app. After some search, I've discovered that Apple has a leak in it's Tab Bar application template. Have you discovered the same, or am I wrong? ...