objective-c

How to show a ViewController as first in a TabbarController, which is not a tabbrcontroller virecontroller?

Hi, I need to show a viewcontroller as first page, which is not a tabbarcontroller viewcontroller, also all the tabbaritem should be unhighlighted. Then when click a tabbar item it leads to corresponding page. how should i do this? please help me out?. Regards, Srini ...

Wait for code to finish execution

I would like to know the easiest way to wait for code to finish execution within an objective c project because I am calling a webservice and retrieving the results and instead it is retrieving the results before the webservice has finished being called and filled. Any suggestions please? Btw this is my webservice code: NSMutableU...

Posting Data from iPhone to a server exposing OData

Hi, I have a server which is exposing OData services. I can actually make use of OData client for Objective C to get the data and show on the iPhone. I am wondering what is the process of posting some data into the server from the iPhone. Assume I have to just send a simple name to the server how would I do that Any pointers to clo...

Detect when an object touches the edge of the screen

If I have an object of arbitrary height and width that moves around the screen, what's an elegant way of detecting when it touches the edge of the screen? ...

Parsing XML code on iphone SDK

Hi All, I have written some code, most of which has been taken from tutorials etc, but not sure it's 100%. The code works, but I think its a bit long winded, and has memory leaks. So three questions: Can it be cleaned up? Easier to understand? How can I fix the 'if (indexPath.section == 1) theRow += 6;' bit to be dynamic? Memory leak...

How can I get the http get request result on iPhone?

I want to send a http, and get the response result, how can I do so ? Thank you. ...

Release build loading cached files

For a reason unknown to me, the Release version of my application has started loading cached static files. If i build in debug mode all is well and it loads the correct most recent files, this occurs on the device and inside the simulator. ...

NSXMLParser Premature Document End error caused by empty nodes?

I'm using NSXMLParser to parse an XML document which is being returned from a web service hosted remotely. The XML is valid but some of the nodes will occasionally be empty, this seems to cause NSXMLParser to fall over (NSXMLParserErrorDomain error 5) however I can't find anything on the net which would suggest that there would be an is...

Wiggle animation Giving Jerky effect at start

I am Using the Following animation for Wiggle effect once the animation is complete if i again fire the animation the image gives a jerk effect as per me its not starting from its current position Like in UIView animation we have setAnimationBeginsFromCurrentState like this property in CAKeyframeAnimation do we have anything similar to t...

NSView Object respond as an IBOutlet

hey, i am stuck on one problem that i am not able to solve. I have a CourtView : NSView in which i can draw and where it stores my mouseDownPoint and mouseUpPoint. And I have a WindowManager : NSObject which has CourtView as an IBOutlet CourtView *courtView; What i want to do is that as soon as the mouse is released, so - (void)mouseU...

How to use NSArrayController to fill data in NSTableView

I want to use NSArrayController to fill the NSTableview, but i am unable to find out the exact procedure. ...

how to implement undo using NSUndoManager? (newbie question)

Im trying to add an NSUndoManager to my program but im not sure how to register the methods with the manager using : [myUndoManager registerUndoWithTarget:selector:object:]; what if i have the following method: -(IBAction)tapButton:(id)sender { myFoo++; yourFoo++; //incrementing integers fooFoo++; } how can i regist...

transparency/alpha in CoreGraphics context (iphone, objc)

Hello, I am currently making a basic image editor for iphone. I take the CGImageRef from a UIImage and create a context for it using the following code origImage = result.CGImage; Iheight = CGImageGetHeight(origImage); Iwidth = CGImageGetWidth(origImage); IcolorSpace = CGColorSpaceCreateDeviceRGB(); IrawData = malloc(Iheight * Iwidth...

how to send sms via mobile number in iphone

hi to all, i have created a music greetings application in iphone. I want that when a user enters his mobile number in the text field and clicks on the send button data from another view should be fetched and send an sms to user's mobile number. Please anybody help me in solving this problem ...

Call code before view loads objective C

Hi, How can I execute code before the viewDidLoad method please? Thanks ...

importing CSV file in core

Is it possible in core data to import CSV file if yes can anyone tell me how and what are the various ways ...

How to remove event From Iphone Calendar using EKEventStore?

EKEventStore *eventStore = [[EKEventStore alloc] init]; EKEvent *event = [EKEvent eventWithEventStore:eventStore]; event.title = appDelegate.title1; NSLog(@"%@",event.title); event.startDate = appDelegate.currentDateName; NSLog(@"%@",event.startDate); event.endDate = appDelegate.alertTime; [event setCalendar:[eventStore...

How to loop through core animation sublayer array and apply animations in sequence

Hi, I want to animate through an array of CATextLayers, one after the other. The layers are created and added in a loop. I need to the animation to work like a flip book. Up to now, as a proof of concept, I have Used CABasicAnimations but in order to animate multiple layers in sequence, I think I need one of the other Core Animation opt...

Search and Highlight text in PDF for IPad

Hi Friends, I am working on the PDF App for iPad and facing an issue that,I want to search a text in PDF and also want to highlight that text but did not get any idea how to implement it. If any one of you know the exact idea please share it with me. Friends please help me it's urgent. Thanks ...

Multiple threads in iphone

how to create multyple threads in iphone(in single class) please help me with sample code. ...