iphone

Who calls prev UIViewController's ViewWillAppear method when we write [self.navigationController popViewController Animated:Yes/No] (IPhone SDK) ??

Who calls prev UIViewController's ViewWillAppear method when we write [self.navigationController popViewController Animated:Yes/No] ?? (iPhone SDK) ...

Implementation of PHP profanity filter

Possible Duplicate: How do you implement a good profanity filter? I have an iPhone app that passes a string through a URL to my php script, which then inserts to my database. I'd like to write some php code that reads $body for any pre-defined profanity. Right now, I only have the following code, but it only looks for exact m...

iPhone UI Design: Okay button or no okay button

I am compulsive and like visually clean designs. Theres a pop up in my app that tells the user that there's an error. I made a clear button over the entire pop up (about 200x100 px) so the user can just touch the notification to dismiss it. But i'm afraid the user might not know that you can just touch the pop up to dissmiss and woul...

How to work with CALayer: Trying to draw a Layer in my Application

Hi Friends , I am trying to add a layer(CALayer/CGLayer) to my application. So i googled for that and tried. When i am trying to create a CALayer using the following code -(void) awakeFromNib{ CALayer *layer =[CALayer layer]; } But it is showing some warning when compiling.[Warning: No +'layer' method found] I add the framework Q...

Upgraded to SDK 4.1 and can no longer install on device with OS 4.0

Each time a new SDK came out, there has been the problem with the "Base SDK" which is really a "max SDK" and backward compatible. My project builds fine after adjusting the "Base SDK" in the Project Info. But why do I get these messages on the console below the Target Info window when I change the "iOS Deployment Target" to iOS 4.0? "iO...

Best datastore for storing 20,000 items to be queried by UISearchBar

I need to store 20,000 records that are brief (map identifiers to names) and allow the user to search for one either by ID or name in a UISearchBar. Approach 1 (Core Data): To conserve memory, I tried implementing this with CoreData with SQLite as the backend but found that storing 20,000 records is slow when the initial import is done....

iphone how to access a custom cell outside of cellForRowAtIndexPath

Hi, i have set up a tableview with custom cells. customCell is a class. heres the code for a more accurate view: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NSManagedObject *object = (NSManagedObject *)[entityArray objectAtIndex:indexPath.row]; NSString *cellIdentifier...

UITableView reordering core data results

my UITableView is reordering the results after you navigate away and them come back to the view. it only does it one time though - if you navigate away and then come back a second time the new order doesn't change. does anyone know what could be causing this? thanks for any help. ...

Use images form camera without taking a photo

Hi, Is it possible to analyze the images without taking a foto on the iPhone ? I want to analyze some matrix codes, without taking any foto. I saw this on some Nokia models and it's quite impressive: really fast! On the iPhone, I've seen analyzing codes after taking a snapshot (or photo), and it's slower. Also the iPhone camera is no...

How to Use PHP in IPhone Applications

I need to create an iPhone application using Facebook. The facebook FBConnect API supports FQL which is similar to SQL Queries. I would be able to create the application easily using PHP as compared to Objective-C. So if there is any way to create an iPhone application using PHP please reply to me. Thanks. ...

Do I need a EULA in my iPhone app?

I'm writing an application for the iPhone that lets users create 3D models which they can then upload to a website so that other people can rate and comment on them. Should I force the user to accept some type of EULA before allowing them to upload their content? I'm just thinking that I may be in trouble if some day I decide to stop t...

Which iPhone OpenGL statistics are accurate on 1g devices?

I'm loading a lot of textures as part of my app. I load them on a "load-thread" and use them on my main thread using another GL context and the 'shareContext' mechanism. I'm using the OpenGL ES instrument to see what's going on and it is reporting that over 2x the number of textures I've actually allocated are resident. In other words...

iPhone App baseSDK and iOS deployment target

I am in the process of deploying my app to the app store. I am not sure what to set for baseSDK and iOS deployment target. I have the latest iOS 4.1 installed. How can I make sure that it runs on all the devices. My application was build on 4.0.1 (I think). My iPod has iOS 4.1 (latest) and my iPhone has 4.0. To make my application work...

iPhone localization for xib files

I am just getting familiar with the localization of xib files and was wondering if there's a way of localizing the strings within the xib by refering to the plists directly... Appreciate some thoughts.. ...

CFURLCreateStringByAddingPercentEscapes crashing app on line breaks

Code: NSString* string3 = (NSString*)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)tvQ.text, NULL, (CFStringRef)@":/?#[]@!$&'()*+,;=", kCFStringEncodingUTF8); My code is working to pass special characters properly via URL to my database, however, if I insert data with linebreaks, it seems to break my app and crashes. Any ...

downloading large amount of images ipad - memory leak?

I am have an app I am writing that will need to download alot of images, possibly 10,000. Right now I can get to about 3000 before I run out of memory and the app crashes, just depends on the image files sizes. I am downloading them on a background thread and showing the progress to the user. I wrote a helper class thatI am accessing ...

How to make my iphone app icon update like the weather app icon?

I have an application that I'm currently building that requires me to display a visual update on the application it self. example: The weather app displays 14 degrees celcius and some clouds as its application icon. When the weather changes there is an update to the way the icon looks without having to open the weather app. The applicat...

How do you create a wiggle animation similar to iphone deletion animation

We are currently developing an application that contains a series of icons. We want the icons to wiggle like the app deletion animations when pressed. What would be the best way to code this animation sequence? ...

Bar Button on navigation based app

I want to add a Bar button to the Navigation bar on a Navigation based app, the bar however is on the MainWindow and has no code behind so I Can't connect it to an IBAction. how do i go about connecting it to an action ? ...

iPhone Function, Swap Arrays

Hi I want to put this into a function. NSMutableArray* weekArray = [[NSMutableArray alloc] init]; [weekArray addObject:@"Before School"]; [weekArray addObject:[NSString stringWithFormat:@""]]; [weekArray addObject:[NSString stringWithFormat:@""]]; [weekArray addObject:@"Break"]; [weekArray addObject:[NSString stringW...