iphone

timer differently behave on simulator and device

Hi frends my problem is as under: timer1 = [NSTimer scheduledTimerWithTimeInterval:1.0/5 target:self selector:@selector(Loop1) userInfo:nil repeats:YES]; timer2 = [NSTimer scheduledTimerWithTimeInterval:1.0/5 target:self selector:@selector(Loop2) userInfo:nil repeats:YES]; timer3 = [NSTimer scheduledTimerWithTimeInt...

can't compile for release, can for debug? [iphone]

Hi I'm trying to compile my project, containing cocos2d and standard UIKit part, i'm trying to do this for iphone 3g/3Gs. The problem is, when i'm building it for debug configuration, it goes like on butter (no errors). But, when i switch to release, i've got over 1300 errors, all of them are like: printscreen almost all of them conta...

Queueing and Handling multiple requests on iphone

Hi all, In my application, I'm using NSOperationQueue and NSInvocationOperation objects to execute all the operations. I have multiple queues in my application and I am using KVO "isFinished" on call of which I am performing the next operation on main thread. The problem is: whenever I perform two operations one after another my appli...

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. ...

How to Zoom out an image with keeping it in a center of the Scrollview

Hello all, In my application i need to capture an image with cam and then pass it to the imageView, which is used as a subView for a ScrollView. The requirement is "the image must facilitate 1/4th size for zoom out and 3 times the size for zoom in". Now the problem is that when i zoom out this image the image zooms out, but it doesn't...

browse or select file button disable in iphone safari browser

I want to know why select file or choose file button is disable when a web page is view in iphone safari. Can anyone tell explain me why this happens is there any way to enable it ?? Thanks ...

back ground for grouped uitableview in iphone sdk

hi guys a new problem has crept up for me.I want to set an image as a table's background.Its a grouped table view.im doing this using IB. i set the background color property for the table view as clearcolor and placed tan image view in the view on which the table view is placed./it looks good on ib,but when the application is loaded t...

Hide/show navigationbar and tabbar onclick.

HI all, u all must have notices in iphone photo gallery, wen u open pic, the tabbar and navigation bar do some hide and show functionality. wen we tap, both appears and after sometime, they get disaapaer.. I want to do exactlly like that, how can i do it??? wen user taps, both gets appear and after a dealy of say 5 sec, they get disaap...

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...

Core Animation:Failed to allocate bytes. using core-plot on iPad

Hi guys, im new to iphone developing so please teach me on stuff that i may miss out. so basically i have graphview.m which creates a coreplotviewcontroller.view in this way CorePlotViewController *aCorePlotViewController = [[CorePlotViewController alloc] initWithNibName:@"CorePlotViewController" bundle:nil]; aCorePlotViewControlle...

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...

iPad MPMoviePlayerController - landscape video at launch

I'm having difficulty getting video to play in landscape at launch. My app supports all interface orientations in the plist file. If I start a view controller at launch then the app loads in the correct orientation. However if I start a video the orientation is fixed in portrait at startup. How can I get around this? [UIApplication s...

Consuming a SOAP Web Service

I'm writing a small sample iphone application just to consume a SOAP Web service. Can anyone point me out how to get started? or any tutorial could help? I've already know before how to connect via the web using NSURLConnection and get the response either XML or JSON. This is my first step to get hands dirty when connecting to a SOAP we...

how to create progressbar programatically

hi i am new to iphone. what i did is cretaing a view with progress bar with IBOutlet,when ever i rotate the view to landscape mode it is not rotatetd. So i need to cretae progress bar programatically. how can i done this pls post some code thank u . ...

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...

table rows leaking

i have the following rows in an iphone table view and they sometimes leak the text from one of the rows to another. if (row <1) { cell.detailTextLabel.text=@"h3ello"; UIImage *image = [UIImage imageNamed:@"icon.png"]; cell.imageView.image = image; } else if (row ==2) { cell.de...

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 ...

CAEAGLLAYER renderbuffer and UIView animation conflicting

I have a CAEAGLLAYER in a normal UIView created using: + (Class)layerClass { return [CAEAGLLayer class]; } I have a method - (void)renderExistingPointsFromModel That gets points from a database and renders it by presenting the renderbuffer at the end. A parent controller calls this method by: [drawingCanvasView renderExistingPoi...

touch on UIwindow?

i have four viewcontroller in my UIwindow.i want to interchange my viewcontroller's view among four through UItouch in UIWindow?is it possible to handle touchmoved in appdelegate.m file to change the frame origins of those viewcontrollers? ...

How to Separate the Profile Details

hi, I try to read education details from face book using JSON in IPhone. I read all education details from Face book successfully. But i get the whole details. I want to separate the school, college {PG and UG}. But the node having same name like school. and also the data wil be read first one school, and then read one college, then ...