objective-c

What is alternative of "QDDisplayWaitCursor"?

I am trying to display wait cursor (spinning rainbow wheel) by using "QDDisplayWaitCursor" function, but I get a warning that "QDDisplayWaitCursor" is deprecated, however everything runs fine but I would like to replace it with proper alternative of this function but I didnt find any google result and also in apple docs. ...

Shake based application

hello all, i want to develop an application which deletes rows from a table view when somone shakes the iPhone,can someone suggest me how to proceed ...

iPhone SDK background thread image loading problem

I have created a grid view that displays six "cells" of content. In each cell, an image is loaded from the web. There are a multiple pages of this grid (the user moves through them by swiping up / down to see the next set of cells). Each cell has its own view controller. When these view controllers load, they use an ImageLoader class th...

updating plist file on launch of application

Hi. I have an app that reads in a plist file from the resources folder. I have looked for about 5 hours for a solution to hosting my plist file on my freewebs acount and have the application update the plist file on launch. Can anyone help me please. I will post my code if you ask. I am just not sure what you need to see now. ...

getting started with libmms

Actually, the title explains it all... I want to read a stream, but have no idea from where to start. I've searched the web for some documentation/tutorial/whatever with no luck. Any help using this lib would be very appreciated. [CLARIFICATION] I am talking about MMS stream protocol library that can be found here. LibMMS is a common l...

NSURLConnection and XCode "Build and Analyze"

I have been following the documentation for using NSURLConnection and am using delegates for managing the connection (overriding among other methods connection:didFailWithError: and connectionDidFinishLoading:). The memory allocated for the NSURLConnection object is released in those delegate methods. My problem is that running "Build/B...

How to enable Cancel button on UI Searchbar iPhone

I am using an UI search bar into my iPhone application, I would like enable Cancel button of Search bar at the time of view did load but not able to do so as its gets activated when a user starts editing the search bar. To be more precise I would to achieve the serach functionality that has been provided by Apple in Stock application ...

Get Ivar value from CGPointin Objective-C

Hi, Thanks for looking at my question. I have been trying to look around and I have been playing around with low level IVars to get information from the classes. I am having trouble trying to load the values that come from CGPoint. CGPoint point; object_getInstanceVariable(obj, [columnName UTF8String], (void **)&point); NSLog(@"%@...

UIScrollView Custom View rotation problem

I have a ScrollView with a Custom View. Now i have the problem with the rotation, the view has after the rotation not the correct frame pos / size. How can i call the CustomView after rotation for a reposition and resize the frame and content?! - (void)setupPage { NSUInteger nimages = 0; CGFloat cx = 0; for (; ; nimages++) ...

Problem with writeData

Hi, I have a problem with my code. I want to create a XML file like this: <name>myName<name> <x>myX<x> <y>myY<y> <z>myZ<z> but my file is: <name>myName<name><x>myX<x><y>myY<y><z>myZ<z> Can i have this text formatting? This is my code: -(void)salvataggioInXML:(NSString*)name:(float)x:(float)y:(float)z{ NSArray *paths = NSSearc...

Why doesn't NSDateFormatter return a NSString?

Why does this message not return a string: NSDate *today = [NSDate date]; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; NSString *formattedDate = (@"Date for today %@:", [dateFormatter stringFromDate:today]); ...

How I auto size a UIScrollView to fit the content.

Is there a way to size a make a UIScrollView auto adujust to the height (or width) of the content it's scrolling? something like: [scrollView setContentSize:(CGSizeMake(320, content.height))]; Thanks ...

The date is always ignored

I cannot understand why the date is never set in the title - it's always ignored and if I swap around the date and the title, then the title is ignored! -(id)initWithCoordinate:(CLLocationCoordinate2D)c title:(NSString *)t { [super init]; coordinate = c; NSDate *today = [NSDate date]; [self setTitle:(@"%@%@", [today description], t...

iPhone - NSURLConnection does not receive data

Hi, I have a pretty weird problem with NSURLRequest. I'm using them to make an asynchronous image loading in an UITableView. The first time the tableView displays, all connections from NSURLRequests open correctly but receive absolutely no data, regardless of how long I wait. But as soon as I scroll down in the tableView, the newly crea...

Save file in a different location in iPhone App

Hi, I have a problem. My proget create a xml file. In the iPhone this file was store in the NSDocumentDirectory. I wanna save this file in another directory like Desktop(where there are the apps) or another visible folder. Thanks. This is my code: -(void)saveInXML:(NSString*)name:(float)x:(float)y:(float)z{ //NSDocumentDirectory p...

problem in loading a model View

I have written a code for mail application like: { MFMailComposeViewController *picker=[MFMailComposeViewController alloc] init]; ......... ......... [self.navigationController pushViewController:picker.view animated:YES]; } The view is not getting loaded.Is is mandatory to write [self presentModalViewController:picker anima...

UINavigation Controller and UITabBarController toggling

Is it possible to do this? In my appDelegate setup both a UINavigationController and a UITabBarController. Initially my UINavigationController is added to the subview with a root view. In my RootView when the user clicks on a certain button, it will remove the UINavigationController from the subview and will add a UITabBarController w...

Forcing Reload of View when returning from FlipSideView of Utility Application

I've got a Utility Application for iPhone 3.1.3. I have my main view loading fine. I flip over to the flipside view of the utility app and change some settings. How can I call the code I've currently got in viewDidLoad in the main view to refresh it, as settings have changed? Do I create a public method and call it from the viewDidUnloa...

How to turn off location services?

If a user has location services on, I assign my RootController as its delegate: appDelegate.clLocationManager.delegate = self; where appDelegate is an instance of my application delegate, which is where I have the location services instance. clLocationManager is an instance of CLLocationManager. If I discover the user is outside of a...

Deleting Multiple rows from a TableView

hi Frnz, i want to delete multiple rows from a table view based on users selection.obviously i cant use didSelectRowAtIndexPath method coz it will be called for every row selected. i want to allow user to select multiple rows for deletion and then delete them in one go...Is it possible if yes then how to go about it.Also i am using a si...