iphone

UIWebView load content On demand

Hi, I have huge amount of data which load on UIWebView. So there has some issues 1. It's take lot of time on loading 2. On iPhone-OS3 it shows little chunk but In iPhone-OS4 it doesn't 3. On orientation it takes much time. So any suggestion? how can I load content On Demand Need? ...

NSURLConnection doesn't call delegate methods

Hello everybody, I saw similar questions here, but I couldn't find solution to my problem. I have a simple NSURLConnection in main thread (At least I didn't create any other threads), but my delegate methods aren't get called [[[NSURLConnection alloc] initWithRequest:request delegate:self] autorelease]; and no methods called, e.g. - ...

Is UIImageWriteToSavedPhotosAlbum slow in iOS SDK 4.0?

I use UIImageWriteToSavedPhotosAlbum to save picture to album. But after updated to iOS SDK 4.0, I noticed that it was slowed down significantly. It's about 20 seconds, between UIImageWriteToSavedPhotosAlbum was issued and completionSelector was triggered. Can anyone help on this problem? ...

iPhone Memory allocation problems

Within my application I have 20 or so ViewControllers and Xibs that the user should be able to access. The problem is after looking at 5 or so of them the application crashes due to lack of memory. I have released all memory that I have allocated within the ViewControllers so I can only assume it's because its holding the memory of so ma...

How to reset UIWebView's zoom? I'm already using scalesPagesToFit = YES;

Hi guys, I've been looking for the past week for the answer to this question. I have a UIWebView, inside of a UIScrollView. Everything works great, but I want the content of the UIWebView to reset its zoom, when the orientation changes. In the HTML inside the UIWebView, I set the width of the viewport (w/ a meta tag) to "device-width"...

How do I catch ALL program aborting errors on iPhone?

I've written an unhandled error module for my iPhone app, but for some reason some errors are managing to bypass it. I have an exception handler and the following signal handlers set: NSSetUncaughtExceptionHandler(&handleException); signal(SIGILL, handleSignal); signal(SIGABRT, handleSignal); signal(SIGFPE, handleSignal); signal(SIGBUS...

Integer Extensions - 1st, 2nd, 3rd etc

Possible Duplicate: NSNumberFormatter and th st nd rd (ordinal) number endings Hello, I'm building an application that downloads player ranks and displays them. So say for example, you're 3rd out of all the players, I inserted a condition that will display it as 3rd, not 3th and i did the same for 2nd and 1st. When getting t...

How should I approach building a Universal iOS app that will include iOS 4 features, even though the iPad doesn't yet run iOS 4?

I'd like build a game for both the iPhone and iPad. As such, it would make sense to start this project from scratch as a universal app. However, iPhone and iPad currently run two different versions of the iOS since iOS 4 isn't available for the iPad yet. There are two iOS 4 features (GameCenter and iAd) that I would like to support in...

Question regarding iPhone SDK Setting Bundle

Hey guys, I'm currently testing my app by adding the setting bundle into my program but the program I'm facing now is when I test my app on my device, I go to the Setting screen and I couldn't found the setting of my app. If I test it on the iPhone simulator then I can find the app's setting in setting menu. May I know what happens? Ho...

PowerVR SGX535 Shader Performance (OpenGL ES 2.0)

I'm currently working on a couple of shaders for an iPad game and it seems as if Apple's GLSL compiler isn't doing any optimizations (or very few). I can move a single line in a shader and drop my FPS from 30 to 24 but I really have no idea why this is happening. Does anyone have any references for the following: what PowerVR instruc...

How can I get notified when it reaches a certain time of day in an iPhone application?

I am working on an application that needs a method to be called at a certain time (15 minutes past the hour to be exact). Is there a way to make this happen without consuming a ton of CPU and battery life? I've tried searching and just can't find an answer anywhere. Any help is appreciated. Thanks! ...

What devices does Apple test your app on during app review?

We have an app ready for submission to app store. The app is built with 4.0 and is targeted to run on 3.1 and above. We have tested it on iPhone 3gs with 3.x and 4.0, on iPod Touch with 3.1.3 and iphone 3G with 3.x and it works fine. But on iPhone 3G with 4.0, the app becomes very slow after just half an hour and starts giving low memory...

Problem making UITableViewCell text white when selected

When my user clicks on a cell I want the text to turn white: - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; lblName.textColor = [UIColor whiteColor]; lblTime.textColor = [UIColor whiteColor]; } This works fine, but when the user selects another cell, the previ...

Mobile UI that works well for both iPhone and Blackberry Web Applications

Can someone recommend a good Mobile UI Javascript/jQuery framework that works well with both the iPhone and Blackberry? I'm developing the core app from ASP.NET. Thank you in advance. ...

Problems with uiimageview.image

Hello! I want to change an uiimage.image by calling a method in my viewcontroller: -(void) aendereBild: (NSData*)bildngage { UIImage *uiimageAusData = [UIImage imageWithData: bildngage]; drawImage.image = uiimageAusData; } To make it short: The image is not changing. This is not due to the NSData I pass (which i first thought...

Screen Shot on iPhone

Hi All, I have a bit of code that does what I want and takes a screen shot. Apple have now said that screen shots have to be taken not using UIGetScreenImage(), but UIGraphicsBeginImageContextWithOptions. Could anyone point me in the right direction. Here's a snippet of code that shows how I am doing it at the moment. CGImageRef inImag...

NSKeyedUnarchiver - delete decoded data?

Hi, I couldn't get any replies on my previous (related) question, so I'm wondering if slightly paraphrasing it will be of any help. I'm encoding a few complex objects with NSKeyedArchiver and saving it to disk. Say, something like - Class member { int *id; NSString *name; NSMutableArray *array; TempClass *object; } ...

iPhone/iPad universal app will not build for iPhone

Hello guys, I have made my application universal for iPhone and iPad (window-based application; universal) from scratch. First I made all logic and views for iPhone and it worked. After that I created views for iPad. That worked to. But when I implemented UISplitViewController or UIPopover, the application will not build anymore for iPh...

how to add back ground image to navigation controller root view

i want to add bg image to root view so that it will be visible in all views .... ...

[iPhone]How would you design Core Data Object Model for the given below structure

JSON As Dictionary { headers = ( { backGroundImageUrl = ""; dataField = Name; headerText = Name; id = Name; itemRenderer = ""; toolTip = ""; width = 60; }, { backGroundImageUrl = ...