iphone

Buttons and Cartesian Coordinates

Hi, I have this scrollview "eager" to be filled up with buttons (4 per row), and resembling iphone apps icons, I want the user to be able to rearrange them has she/he pleases. If it were one row of buttons only, Apple Autoscroll tutorial app would be an excellent example to follow. Not the case, this is 2D and I cannot figure out how to...

Not Receiving Push Notifications

hi previously i had configured my app id for development push notifications it was working fine. But now i have changed my appid and i have followed the same procedure as stated in the apple docs and i have put newly generated .p12 file on the server side but i am not getting the push to my device now. i have a doubt for an apple id i...

How to force Iphone's safari to use "media=handheld"?

Is there a way to force to Iphone's safari to use "media=handheld" in place of media="screen"? ...

Cannot read XML File

Hi there, got a little problem with receiving the contents of a xml file (using TouchXML). My first query works very well, looks something like this: NSString *url = [NSString stringWithFormat:STATION_ID, latitude, longtitude]; CXMLDocument *rssParser = [[CXMLDocument alloc] initWithContentsOfURL:[NSURL URLWithString:url] options:0 er...

iPhone custom UITableViewCell accessory graphic, a HIG violation?

I want to introduce a custom pencil accessory image in a tabel cell and in the standard accessory righthand UITableViewCell position. The pencil image will be used to indicate that the text in the table cell can be edited via a popup modal full screen view. Will Apple penalize this innovation during the app review process? My justifica...

viewing tableViewLines on background of custom UIView

I have a viewController that has a tableView and a custom loading UIView that displays a loading message and spinner while the data of the tableView is being loaded. The custom UIView has a red background that i can see, but i can still see the lines of the tableView, How can i get to display the custom uiview without seeing the tableVi...

How to create a smoke effect in iphone?

Hi, i am developing an application where i want to do some smoke effect like animation and interact with that smoke. Do i need to implement it OpenGLES or any simple solution? Is there any sample application for it? ...

iPhone and User Defined Runtime Attributes

What happened to "User Defined Runtime Attributes" under the Identity inspector in Interface Builder when building iPhone UIs? I used to define a custom outlet for UITableView's tableHeaderView in versions before 3.1/3.2 or when it might have disappeared. ...

How to visualize (and not pick) image from the Camera Roll

Hello, I will like to visualize the images from the Camera roll from my application. Something like with the Album app which let you zoom and pan pictures. I tried using the UIImagePickerController with UIImagePickerControllerSourceTypeSavedPhotosAlbum as sourceType but unfortunatly if a tap a picture, the didFinishPickingMediaWithInfo ...

Problems with creating and using of delegate-protocols

Hello, I have the problem that I have created a delegate protocol, but the necessary methods are not executed, although I have implemented the protocol in my header file. Here are the detailed explanation: I created an instance of my ViewController (TimeLineViewController), which will be displayed. This ViewController contains a UITable...

Paging view within a productivity App navigation hierarchy.

The Apple UI design guide suggests that a UIPageControl is ideal for presenting the top view of a utility app. Would a paging view that appears at the 2nd or 3rd level down inside the main UINavigationController view trigger a fail during the App review process? In my App I have inserted a 3 page view at the second navigation level dow...

Get File Size of File to download using FTP

I am using the simpleFTPsample of apple. I want to display a progress bar of the file being downloaded. I understand it needs to be done in: - (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode under the case: case NSStreamEventOpenCompleted: how do i retrive the file size from the NSInputStream? I have al...

Displaying a Percent on an iPhone app

Okay, maybe I am looking to hard or been up to long but this is driving me crazy. I am trying to display the percentage on a View but it always shows as 0. What simple thing am I doing wrong? int iNumber; float fNumber; fNumber = 3/ 24; iNumber = 3 / 24; NSLog(@"iNumber: %d", iNumber); NSLog(@"fNumber: %f", fNumber); NSNu...

Effective iPhone software copy protection solutions

Are there any effective copy protection solutions to protect iPhone software ? ...

Remove subview UIImageview from UIScrollView

Hello i have a uiscrollview and i have one object of uiimageview inside the uiscrollview. I start the app. then i scroll to the right at the scrollview and the scrollview changes but i can not see the next uiimageview object that i add at - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView . before i add the next object i rem...

on an iPhone web application: how do I disable the rectangle that appears around a DIV when a user touches and holds it?

I've tried setting -webkit-user-select: none and selectstart And it did remove the selector, but a rectangle still appears.. ...

Methods to debug NSNotificationCenter issues?

I'm having some issues where my posted notification: [[NSNotificationCenter defaultCenter] postNotificationName:@"MobileProviderChanged" object:self.selectedProviderID]; Is not being trapped by my observer: [[NSNotificationCenter defaultCenter] addObserver:self ...

asynchronous stateless API

Hi, Imagine a table view listing some recipes. Each time the user taps on a recipe a new table view is loaded listing receipe ingredients. To get the information, I'm asynchronous calling a REST API using: NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnor...

Customize height of n cells in UITableView, but not all the same

Hi all, thanks to the folks here I already learned quite a lot on my way to a cool iPhone App I am working on. However, I was wondering if anyone found out how to manipulate a UITableView, so that a cell (any or, if that is not possible, it could only be the selected one) can have a different height. I know I can use something like thi...

UIView subclass won't autoresize.

I've been looking for background information on resizing, but I haven't been able to find much. I know I need to set autoresizesSubviews on the superview and autoresizingMask on the subview. I have done this, and my UIImageViews properly resize, but my custom UIView subclass does not. The code for the UIImageView: UIImageView *newX = ...