iphone

display images as displayed in iphone music album when seen in landscape mode??

i wanted to show my images in a similar way as we get to see different album names in our iphone player in landscape mode....is that possible?? ...

ImageView changes frame/bounds...

I have been trying to find this issue here, but no topic seems to fit... I have a UINavigationController that pushes different kinds of UIViews containing images. When the controller pushes a new view, it the navigation bar is moved onto the screen and it appears that the image subsequently is being 'squelched' a bit - or it 'moves in fr...

iphone singleton object synchronization

I'm working on an iphone app but this is probably a general question. I have a singleton Model class and there would be scenarios where multiple NSOperations (threads) would exist and work with the singleton object. If they all call the same method in this object, do i need to have some locking mechanism? Or can this method be executed...

Is kAudioFormatFlagIsFloat supported on iPhoneOS?

I am writing an iPhone app that records and plays audio simultaneously using the I/O audio unit as per Apple's recommendations. I want to apply some sound effects (reverb, etc) on the recorded audio before playing it back. For these effects to work well, I need the samples to be floating point numbers, rather than integers. It seems thi...

How to Call JAX-WS Web Service in Iphone

Hello, How to use JAX-WS Web service in Iphone Sdk, anyone has idea then please let me know. Thank You. ...

Apple Push Notification Feedback Service - how frequently does it check

I have been able to successfully create push notifications and I have also received responses from the feedback service, so I am confident that my configuration is correct, but I was wondering, how long after a device has been made inactive, will it be picked up by the Apple Push Notification Service. When I first polled the feedback ...

move sprite by using touchmoved in specified regions of screen

hi friends, I am making an application, in that I want to move the sprite in a specified region of the screen, With cocos2d I am not able to make move of sprite, I only know the method -(void)ccTouchMoved:(UITouch *)touches withEvent:(UIEvent *)event, but I don't know how to move a sprite, can any one help me???? Thanks in advance ...

iPhone/iPad universal build problem with firmware version

Hello guys, I was doing a project as Universal binary for iPhone/iPad. I created the iPhone app side and I was doing to complete the iPad too. I noticed one thing, on iPad classes I use the UIPopoverController class, means that when I build now for 3.2 in the Simulator, it runs te iPad one and it works fine, BUT if I want to see the iPho...

Can draw on only half of UIView

Hello. I am trying to draw grid on a UIView on a UIScrollView. The width of UIView is about 1000 pixels. However, I can draw lines only about first 340 pixels of the UIView. Can anyone help me on this? The drawGrid function is - (void)drawRect:(CGRect)rect { NSInteger width = 25 * 5 * 10; NSInteger height = (10 * 2 + 10) * 12; NSIntege...

Memory management for a convenience class to do asynchronous web requests

Inspired by Apple's LazyTables sample, I've just built myself a class called ImageLoader. It's agonizingly clever of me. And as is often the case when I'm agonizingly clever, I'm up against the limits of my wisdom about how to handle the memory of this object. The thing gets instantiated from a UIViewController subclass inside viewDidLo...

How to clear cache image ?

Hi Guys, I have created thumbnail view using Three20 bundle. I have successfully loaded and displayed the images in the view. Now i want to clear the cache images because everytime it shows only the previously cached image and not the updated or latest image. All images are retrieved from the RSS feed. Please help me out. Thanks. ...

From iPhone to Android Question

(I'm coming from an iPhone dev world. ) In Android do we need to worry what OS version we compile against? In the iPhone world I would usually target a release that's at least 6 months old to limit the number of issues with installing on iPhones with old OSs. What strategy should I use when choosing what to compile against on the Andro...

Record sounds using a two-dimensional array

i'd like to record sounds played by tapping with a two dimensional array using the time and the sound id. is there any code example anywhere? thanx blacksheep ...

Can't build iphone project in xcode with CATRansform3DMakeRotation

Hi, I need to use CATRansform3DMakeRotation function in my project, but when I try to compile I get an build error Undefined symbols: "_CATransform3DMakeRotation", referenced from: if I comment the function out the project builds fine. Any ideas why is this happening? ...

adding title to navigation bar

hi , i have two different view controllers added to the viewcontrollers array of a tabbarcontroller and this tabbarcontroller is added to a navigationcontroller. now i want to show different title for different views in the tabbar, on the navigationController. Pls help me to find a solution for this.... i am new to iPhone app developmen...

Dismissing UIImagePickerController from UITabBarController

I have a tab bar application whereby one tab uses a navigation controller to move through a series of views. On the final view, there is a button to add a photo, which presents a UIImagePickerController. So far, so good - however when I finish picking the image, or cancel the operation, the previous view is loaded, but without the tab ...

Using FFMPEG to reliably convert videos to mp4 for iphone/ipod and flash players

I need to convert videos for use in both a flash player and the iphone/ipod touch. I'm using the following batch script with ffmpeg: @echo off ffmpeg.exe -i %1 -s qvga -acodec libfaac -ar 22050 -ab 128k -vcodec libx264 -threads 0 -f ipod %2 This always outputs an mp4 file, and I can always play it on my PC. The videos also seem to p...

How does XCode signal an app to stop while running in the simulator

In the typical build and run sequence of XCode, you often have your app still running in the iPhone simulator from the last time. XCode helpfully asks if you would like to stop the executable before it installs and runs the newest build. But how does XCode signal the iPhone simulator to stop the application? And could I write a step i...

How do I properly add existing source code files to my Xcode project?

I'm new to iPhone development and I'm still getting familiar with the Mac dev environment, including Xcode. I want to add some 3rd party code to my iPhone project, but when I add the "existing files" to my Xcode project, I'm presented with a dialog box that has far too many options that I don't understand and, as such, my project isn't ...

how to load an rsa asymmetric key pair with obj-c on the iphone?

I have the raw bytes of public and private key in a buffer and want to use that information to encrypt / decrypt data. I do know that I could generate a keypair using SecKeyGeneratePair and then save it to the keychain, but i don't want that... essentially, i need the Objective-C equivalent of the following Java Code (using Bouncycastl...