iphone

iphone application update

hi, i would like to check: if a user downloaded my app, than i make some update to app, data etc., itunes will auto remind the user of the update through app store, and the user can update for free? or do i have to set such reminder in my application? else, is there a way for me to send this notification? thks Rgds ...

Copy core data database between two iphone

Hi! I'm coding an app with core data. I need to sync the database between two iphones running the same app maybe via bonjour... Can anyone help? Thankyou! ...

Do you have to declare overriden @property methods in the .h file?

Hello, Beginner question here. In the .h file of an objective c class.. If you have an @property int someVar; for example.. and you're actually going to write the setter method yourself in the .m file.. do you still have to declare that setter method in the .h file? If you have some @property declarations in the .h file and you are w...

Problem with using quartz 2d to draw a PDF

I have problem with quartz 2d to draw a pdf, I have it up and running fine but I am not so sure how to progress to the next page Here's the code -(void)drawInContext:(CGContextRef)context{ CGContextTranslateCTM(context, 0.0, self.bounds.size.height); CGContextScaleCTM(context, 1.0, -1.0); CGPDFPageRef page = CGPDFDocu...

Download queue in iPhone

What's the best way to implement a download queue in iPhone? Can this be done with the ASIHTTPRequest library? ...

iPhone - UINavigationController question

Hi. I want to display some data on table, let's call it "TabeView" app. So I created a "navigation-based" application on XCode and it gives me 4 files in the "classes folder". RootViewController.h RootViewController.m TableViewAppDelegate.h TableViewAppDelegate.m Now, I wanted to set up the data in TableViewAppDelegate using the "d...

Very large NSDictionary vs Core Data vs SQLite for read-only look up on iPhone?

I'm tinkering around with a iPhone word app where I am using a DAWG structure for finding anagrams from a user defined word bank in real time as the user types. That part works well. As the words are identified, I want to retrieve specific information about each word which I currently have in a plist file (keyed by word). This informa...

How i can clean iphone proccesor

I have app that need high latency If i do 2 measure after press button - given me +-0.5 between 2 result If i do next 2 measure after press button - given me +-20 Also i have same situation if i exit app and start than press button exit app and start than press button ...

how to load UITabViewController from UIViewController

I am new to iPhone development. I have designed a user authentication screen which accepts user ID and password. This is designed using UIViewController in MainWindow.xib. On success, I want to unload current view and load a UITabBarController from RootViewController.xib. I am not sure what I am doing wrong, but not able to load the UIT...

How to change a value inside a dictionary in an array that's inside a dictionary?

I have a plist dictionary with several arrays where each have different number of items. These items are dictionaries too. So basically it looks like this: Root dictionary names array places array Item 0 dictionary Item 1 dictionary placeName string: "House" description string: "My House" height number: 10 Item 2 dictionary ... colo...

With & Without UITextFieldDelegate?

I am curious about conforming a class to UITextFieldDelegate, in the past I have always added it to enable access to methods defined within the protocol. However this last time I forgot to add it, only realising later that it was missing. My question is why does it work with or without, I thought it was needed to correctly access the pro...

iPhone storing large amounts of images

I have a large amount of images that correspond to records in a sqlite db. where should I store them? I have 3 versions of the same image - large, med, thumb sizes. (I don't want to store them in the db table, but reference them instead from each record) all the images have the same name - each small, med and large image files would all...

iPhone: Can't set object received from thread in NSMutableDictionary

I've got a thread (specifically an NSOperation) that runs to load some images for me for a scroll view when my main view asks for them. Any number of these NSOperations can be queued at once. So it goes with the filepath I give it and loads the image from the disk (as UIImages) and then sends the object back to my mainview by using perfo...

Playing mp3 stream from winamp server

Hi all, I am developing an app that requires playing a web radio stream. I have been reading online on how to do that and it seems that there are many ways like the AVAudioplayer, the Audio File Stream services and the Audio Streamer project from Matt Gallagher. Since i just started reading about it maybe some of them are the same, but ...

How do I draw a rectangle with clipped, not rounded, corners on the iPhone?

I saw many examples of how to draw a rounded rectangle using iPhone SDK. What I really need is a trimmed corner rectangle, something that will look as follows: Thanks, Josh ...

respondsToSelector send to deallocated object

Hi, I try to find out why my app crashes (RSS Reader) if I send a wrong URL to NSXML Parser. I got an EXC_BAD_ACCESS. So after some Searching I found out that I have to use Zombies. So I added the following arguments to the environment: CFZombieLevel = 3 NSMallocStaclLogging = YES NSDeallocateZombies = NO MallocStackLoggingNoCompact...

i Want two UITextFields but with different delegate methods

I have a view with 2 textfields in it. The first one should get URL's, the second words to be searched on google. The problem is that the following method -(BOOL)textFieldShouldReturn:(UITextField *)textField; designs the behavior for both of them. What should I do in order to be able to design two behaviors just as I mentioned above (...

NSMutableArray and memory dealloc

Hi all Im making an app for the iphone using cocos2d and i am trying to figure out the best approach for removing items from a NSmutableArray and from the layer at the same time. What i mean by this is that the objects within the array inherit from ccNode and contain a ccsprite which i have added as a child to the cclayer. The below cod...

Moving an UIView containing Buttons stops Buttons responding

I have an XIB file containing a subview (footerButtonsView) containing two buttons. I change the position of the subview like so: if (footerView.frame.origin.y < 280.0) { [footerButtonsView setFrame:CGRectMake(footerButtonsView.frame.origin.x, footerButtonsView.frame.origin.y+300.0-footerView.frame.origin.y, footerButtonsView.fr...

Content is not retreived from file

Hello, I've got this wired problem, I cannot get the content from the file and initiate my NSMutableArray with it. Here's my code: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSLog(@"Does file exist?: %i", [[NSFileManager d...