iphone

pop up a window in xcode

i have a search bar in navigation bar now whenever user press on that i want to drop down a view having 2 text field and a cancel button , but i dont know how to do that kindly suggest me Thanks ...

Custom Crop Size in UIImagePickerController

I've been struggling with this for awhile now, since there is little documentation on the subject. I have a UIImagePickerController in my iPhone application that I use to select an image to be applied as the background of a view later. This is easy enough to do. Unfortunately, if a user selects a large image from their camera roll it nee...

Going live with Facebook for an iPhone app

I have recently added Facebook integration into my iPhone app. I am ready to submit my update to Apple, but I am not entirely sure if there is anything left to do on the Facebook side. All my app does is post updates to your wall. This seems to work for me. Also, does this mean my app now has encryption? ...

how can i stop animation of a single button from group of buttons

hi i am new to iphone. my code for animating the buttons is as fallows - (void)moveImage:(UIButton *)image duration:(NSTimeInterval)duration curve:(int)curve x:(CGFloat)x y:(CGFloat)y { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:duration]; [UIView setAnimationCurve:curve]; [UIView setAnimat...

How to use Amazon S3 classes with Walrus S3?

Hi all, I am developing an iphone project in which I have to use Walrus S3 of Eucalyptus which my client has asked to use. It is similar to Amazon S3. He has provided me a url for storing buckets and objects just like there is a url in Amazon S3. I am using the S3 classes from the following link: http://allseeing-i.com/ASIHTTPRequest/S3...

Xcode: add a string to address book, i dont know how

i dont know anything about obj-C and Xcode, almost nothing, i tried building only with very basic apps... now i have here an app porject source, a friend of mine built partially, and i need to finish it. the only thing i need is to save the string (a telephone number in my case) to the iphone address book this is the var resultText....

Generate HMAC using SHA256 in iphone

How to Generate HMAC using SHA256 in iphone ? And also when generating hash , i want to give timestamp as parameters ..... Can anyone help me ? Thanks in advance........ ...

does UITableViewController have special behavior when being popped off a UINavigationController stack?

I've got a bizarre what-seems-like-a-over-release issue in a tab bar application. My advance apologies for the complexity of this problem description. Hopefully a little example code will help. I have my application delegate MyAppDelegate set up as the UITabBarControllerDelegate: - (BOOL)tabBarController:(UITabBarController *)tabBarC...

why does didUpdateToLocation method not getting called on ios4?

Hi! Can anyone plz tell me why didUpdateToLocation method is not getting called on ios4 whereas it is getting called on ios3? Ragards, Vikas ...

play sound on iphone even in silent mode...

i want to make an application which creates sound ,music ,system sound etc when iphone is in silent mode ,is it possible to play any type ofsound whether music or system tones when it is silent mode? ...

Re-use toolbar icons in regular UIImageViews and add colors by masking

I have several icons I'm using for a toolbar, and I'd like to use some of these icons in a normal UIImageView. However, the primary background of my views is black, so the icon just shows up as a black image with a slight outline. How do I properly apply a mask so that it shows up like it does in a toolbar or tab bar? That is the image i...

How to control the crashing of my app when i switch between tabs

Hi to all, I have created a music application in iphone . The App crashes if i keep on switching between the tabs while the song is playing. How can i solve this problem .Please anybody help me regarding this problem ...

is it possible to change image color in imageview dynamically

hi i am new to iphone. what i am did is i am creating a imageview with one image. for example that image in imageview is balloon with color black. Is it possible to fill that image with random color mean balloon with random color.if can how can i done this pls post some code.Thank u in advance. ...

How to get day, month, year, hours, minutes, seconds from a UNIX timestamp in Objective C on Iphone

I have been going up and down through all kinds of reference docs and examples over the web but I just can't get how to get what day, month, year, hours, minutes will it be for a given timestamp in Objective C. Any ideas? The code I'm using for the purpose is like this: NSDate *date = [NSDate dateWithTimeIntervalSince1970:128618100...

How to call a method/selector when a variable/object changes value on iPhone

Hi, I'm looking for a way to "monitor/observe" a singleton class I'm using to pass information back from an asynchronous http request. I want to update the UI once I have received and parsed the response. Since iPhone SDK does not have an NSArrayController to monitor my data in the singleton, how can I do an asynchronous UI update? Thi...

"Program exited with status value:5"

I've looked around a good bit and never found a comprehensive list of exit codes for Xcode especially working with iOS. This question: http://stackoverflow.com/questions/2504512/debuging-to-simulator-crashes-with-exited-with-status-5-unless-i-have-breakpoin simply says I need to restart xcode. But the problem is still there for me. So...

Iphone SDK: Use the same UIImageView at different places in a UIIView?

Hi guys I got a problem. I would add the same UIImageView at different places to my View. So I could make 10 UIImageViews with the same image but with other names. But i got ca. 50 UIImageViews... I make my UIImageView with this code: Code: CGRect dragRect = CGRectMake(0.0f, 0.0f, 70.0, 70.0); dragRect.origin = CGPointMake(10, 300);...

How to properly release an AVCaptureSession

I'm using the AV Foundation classes to capture the live video stream from the camera and to process the video samples. This works nicely. However, I do have problems properly releasing the AV foundation instances (capture session, preview layer, input and output) once I'm done. When I no longer need the session and all associated object...

cocos2d:Convert iPhone App to Universal App

Hi, I have developed an App app in cocos2d 99.4 using cocos2d box2d project template.It works well in iPhone 4,iPod.....but i need it to convert to universal...i mean iPad version also ......i already upgraded it to iPad version....so that it runs in iPad...but in small size like iPhone... can any one help?? Thanks ...

Can we get the iPhone crash logs thro app?

Can we get the crsah logs thro app ? Will NSFileManager/NSData help us to accesss .crash files from iphone ? Is there any way to get it, except the well-known iTunes sync method...?? Thanks in advance. Gopi. ...