iphone

Does Core Data automatically validate new values when they are set?

In this question, someone asked how to write a validation method for Core Data. I did that, and it looks cool. But one thing doesn't happen: The validation. I can easily set any "bad" value and this method doesn't get called automatically. What's the concept behind this? Must I always first call the validation method before setting any v...

IconDownloader, problem with lazy downloading

My problem is simple to be described but it seems to be hard to solve. The problem is loading icons, with a custom class like IconDownloader.m provided by an official example from Apple, avoiding crashes if I release the view. I've added the IconDownloader class to my app, but it's clear that this approach is good only if the tableview ...

international keyboard customized?

in iphone sdk 3.0 they have given option of international keyboards.user can choose the keyboard that he want. but how can we localize our application. for e.g if user have chosen a French language keyboard we should interact with him in french. like alerts and other things should get display in french language. how can we do this progr...

What is an inter-property value in Core Data?

From the documentation: NSManagedObject provides consistent hooks for validating property and inter-property values. You typically should not override validateValue:forKey:error:, instead you should implement methods of the form validate:error:, as defined by the NSKeyValueCoding protocol. If you want to validate inte...

How can I get a custom UITableView to automatically scroll to a selected text field?

I have a UITableView, which I am controlling from a custom UIViewController. When the user clicks the 'add' button, I add a row to the UITableView with a text field in it, and make it the first responder. The problem is, when the bottom of the table is out of view (or hidden by the keyboard), the UITableView doesn't scroll to bring the t...

Reading Data from UIWebView

Hi, How to read UIWebView Data. i want to read View Source of the url in the UIWebView. anybody has any idea then let me know. Thank you. ...

aspectRatio = backingWidth / backingHeight ???

What am I doing wrong here, I can't get the result of this division: aspectRatio = backingWidth / backingHeight; I've thought I might try casting to (GLfloat) but that didn't do anything. As I step through the code I see that aspectRatio is 0 after the operation, while backingWidth is clearly 768 and backingHeight is 1029. Here are ...

iPhone 4.0 Screen Resolution and writing robust code...

Does anyone know what will happen with existing apps when they run on the iPhone 4.0 in terms of the new screen resolution? I am assuming, just like developing for the iPad that there should be no hard coded screen resolutions in your code. I'd also like advice on the best way of writing robust code to work well on any device. For ins...

simple image animation with the keyboard

Hi the app I am currently working on requires a simple animation to be performed, which I am able to do but timing is an issue. The app uses the slightly opaque keyboard and I have set up a black background to make it more visually pleasing . The app is a utility app and as the user clicks on a settings button the app will flip which loo...

How to decode UTF8 characters with JSON on iPhone ?

Hi there, I'm using ASIHTTP Request to get a NSString response that I give to a SBJSON parser. The problem is that inside the NSString response I got some UTF8 encoded character (accent) that I need do decode to make the app works. How can I decode UTF8 with JSON? I call the JSON message like this: [jsonParser objectWithString:jsonStri...

iPhone offline reading

Hi, first of all - I am quite new to iPhone App development (3 months). I am working for a software company that offers a content management system. Our customers are for the main part publishing houses for magazines. They use our software to write articles to their homepages. Now we want to offer iPhone Applications to go with our cms....

Format number as I type Expand this post

Hi I am working on an app at the moment that requires number input to be formatted as the textfield changes as well as perform a calculation. I have the text fields set up so that as the user types notifications are passed out and a calculation is performed. However what I need to do now is format the text to be in this style: €1,000,000...

How to remove animation glitch ?

Hi all , I am downloading and then parsing some data on separate thread and then updating my ui on main thread with the following code but in this scenario I am getting animation "glitch" . I have read this word somewhere . - (void)didFinishParsing2:(NSArray *)appList { [self performSelectorOnMainThread:@selector(handleLoadedAp...

what should i write in the info.plist to open pdf file in my app from pdf page in ipad

i want to open the pdf file in my app from the pdf file, this my info.plist file. <key>UIFileSharingEnabled</key> <true/> <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>pdf</string> <key>CFBundleTypeExtensions</key> <array> <string>pdf</string...

Efficient method of getting all plist arrays into one array?

If I have a plist which is structured like this: Root Array Item 0 Dictionary City String New York People Array Item 0 String Steve Item 1 String Paul Item 2 String Fabio Item 3 String David Item 4 String Penny ...

insert objects into array.

HI all, i need to create an dynamic array, every time i add object,it should not overwrite the first element.It should keep inserting into it. eventually i need to insert that elements from array into table view. so from one view, user filling form first name,last name and hits enter. these two values should be inserted into array.Whic...

iPhone UITableViewCell with UIWebView inside: selection problem

Hello, I have an UITableView and in every cell I add 3 custom subviews: label, webview and another label. The problem I am having is that when I tap a cell, instead of all the cell's background changing to blue, it only changes around the webview, but the webview still has a white background. it's very ugly. Is the any way of fixing thi...

Is there an difference between transient properties defined in the data model, or in the custom subclass of NSManagedObject?

I was reading that setting the value of a transient property always results in marking the managed object as "dirty". However, what I don't get is this: If I make a subclass of NSManagedObject and use some extra properties which I don't need to be persistet, how does Core Data know about them and how can it mark the object as dirty when ...

image upload on server

I am trying to upload an image to server using iphone . I haven't done it before. But I am not getting how can i do it. I know how to add text data on server. But how to add the image data or an Image to server . Can any one suggest!? ...

When exactly is -willChangeValueForKey: or -didChangeValueForKey: called?

In this article, I was reading this: Calling -[willChangeValueForKey:] and -[didChangeValueForKey:] marks an object as dirty, regardless of the key. When exactly is -willChangeValueForKey: or -didChangeValueForKey: called? ...