iphone

Image in the TableView Cell causes delay when scrolling

Hi, I've put an image into my tableview cell in which the image is located in a certain URL.. My problem is that when my tableView already displays the data, then scrolling the tableview up & down, it will take some time or delay before it reacts to the scrolling.. I've found out the problem is into the image located in the URL and I...

PNG transparency not blended properly in iPhone app?

This is my first iPhone app in which I am importing images wholesale from Photoshop. Some aren't rendering properly. The following image is a white button with rounded corners; the transparency overall is being preserved, but the blending from the image to the transparent pixels results in a white edge around each corner: http://adamb...

App Crashing when using large images on iOS 4.0

Hi everyone, I've been having a problem to show large images on a scrollview, the images are 2,4 - 4,7 MB. It runs fine on the 3GS and on the simulator. But whenever I try to run on a 3G or iPod Touch 2G, it crashes. I searched across the web and found the "imageNamed is evil" article. Ok I changed all my image calls to imageWithConten...

Google Maps API v3 marker setPosition not working in Safari (sencha touch)

I am using Sencha Touch to develop a mobile version of a Bus Tracker for Boston University. The problem I a running into is that the method setPosition() for a google.maps.Marker is not rendering the position change in Safari or any Mobile browser. The code set up is as follows: I initialize an empty markers array I initialize the map...

Unable to run my app since the upgrade of Xcode

Hi, I made the update of Xcode to version 3.2.3. Since then my application won't start any more. Actually it starts with the spash screen and then I just see a black screen. The Framework where "red" so I hade to change the "Project format" form 3.0 to 3.2. CoreGraphics.framework was still in red. So I removed it and added it again and ...

Is 'user-scalable=no' broken with iPhone 4?

The following markup is so simple, I'm baffled as to why I'm able to scale in Safari on iPhone 4 when I shouldn't be able to. Any idea what I might be missing, or if this is a bug? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&g...

CALayer autoresizing on iPhone/iPad: How?

I'm trying to create a UIView subclass ("GradientView") that will fill itself with a gradient of various colors. I've implemented it by adding a CAGradientLayer as a sub-layer of UIView's layer. It looked good, but when the screen was rotated, it didn't resize the gradient layer. Having no luck finding a BOOL property on the layer to to...

iphone - determine if touch occurred in subview of a uiview

In a subclass of UIView I have this: -(BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event { if(touch occurred in a subview){ return YES; } return NO; } What can I put in the if statement? I want to detect if a touch occurred in a subview, regardless of whether or not it lies within th...

UIImagePickerController in camera mode gets 'stuck' with the shutter closed

Occasionally in low-memory conditions the UIImagePickerController I use gets 'stuck' with the shutter closed. Generally when this the WatchDog is allready jettisoning other background apps so within a second or two the low memory condition is over, yet the UIImagePicker controller is still stuck. Has anyone else encountered this and im...

Very hard to capture double tap on UIButton subclass. (time delay to capture double tap)

Im talking about two separate touches on the screen with the same finger I think i have the coding right for this. but it is almost impossible for me to actually generate a double tap on my iPad. Is it possible to increase the time interval between a single and double tap, so it is easier to trigger. I do a double tap very fast and it c...

delete string content

i fill a string with coordinates , thats working fine. but how can i delete the content of this string. PS: i use this string in a web services. the web services takes the string and convert it in the typ double. if i make lat = nil; it dosent work. here the code: double degreesLat = newLocation.coordinate.latitude; lat = [NSStri...

How to init NSObject<protocol> pointer so it responds to delegate SEL?

I have such thing in my class definition: NSObject<SomeProtocol> *dataDelegate; I have custom -(id)init method in which I should init this NSObject. How do I do it if I want it to respond selectors from SomeProtocol? ...

when i create a button with identifier,action parameters is giving error

stop = [[UIButton alloc] style:UIButtonTypeCustom target:self identifier:stop action:@selector[webView stopLoading]]; when i am using this is giving syntax eerror : is expected ...

Play sound on iPhone without resources.

Hi, I want to play the sounds in iphone without calling them from resources. My problem was i copied the project on the desktop changed the project name and installed it on the iphone simulator but it was not picking the new sound files it was still playing the sounds of old project can anyone tell me what could be the problem? I just ...

Mapkit Array of Pins with Custom images and Details?

Hello i have been trying to find a tutorial that show how to setup an array of locations with details and images and drop the array of pins on the map. would someone have a simple way of doing this this? links would be helpful. ...

iphone simulator deny locating

how can i configure the Xcode simulator to NOT localize me. i want to check my locationManagerDidFail Methode. ...

iPhone objective-c wifi spots list

Hi everyone, I've got a question about iPhone developing. Is there a example code or tutorial for getting a list or maybe an array with wifi spots that where find in the current environment? Thanks a lot! :) ...

Setting a prompt in an ABPeoplePickerNavigationController

I'm having trouble getting this code to set the prompt: // Create a PeoplePicker ABPeoplePickerNavigationController *objPeoplePicker = [[ABPeoplePickerNavigationController alloc] init]; [objPeoplePicker setPeoplePickerDelegate:self]; // Customize colors objPeoplePicker.topViewController.navigationController.navigationBar.tintColor = [U...

Dragging and resizing UIImages or UIButtons.

How does one take a UIButton or UIImageView and make it editable at runtime? I would like the user to be able to move small UIImageViews or UIButtons around the screen, resizing them, dragging them etc. I would like to make the corners of the squares or rectangles able to handle user interaction so that they can resize using the corner...

How to use Core Data at 3rd level View of navigation

Dear All, I am trying to build a navigation based iPhone application where I want to use Core Data modal at 3rd level view of navigation. The 1st and 2nd level view of this application are just simple tableViews. I have looked at the Apple CoreDataBooks application but there it used the methods for Core Data in the AppDelegate and RootVi...