iphone-sdk-3.0

How can I replicate the Swing(Needle) animation of VoiceMemo.app?

Hello all, I want to create an application in which i want to record user voice.I want to do the same naimation as voiceMemo application does on iphone when we record sound? any sample code would be appreciated. Thanks. ...

Removing and reinserting UIView into UIViewController

I have a UIViewController that contains a UIView. Between every time the viewcontroller is displyaed, the UIView has to be cleared and the content reloaded. The problem is that the old content still appears in the UIView. Load data before controller becomes visible: - (void)viewWillAppear:(BOOL)animated { contentView = [[ContentVie...

UITableView page size when paging enabled

Hi guys, I'm facing with a simple but tedious problem. What I'm trying to do is make an UITableView to page like an UIScrollView but enabling paging doesn't help me so much because I can't set page size so the tableview scrolls exactly of its height so it shows rows 1...10 or 11...20 and so on. What I'd like instead is that no cell rema...

NSURLCache Problem with cache response

Hello, I'm writing an iPhone application, one of it's tabs is a twitter feed, i'm parsing twitter xml and putting it nicely inside a table view. In case there is no internet connection I would like to show cache results of the last time we had internet connection and the tables were updated. I'm using NSURLCache for that like so: NSURLR...

Objective-C copy an NSArray properly?

My iPhone app keeps crashing, and I've narrowed it down to this one line over the past bloody week: NSArray *fetchResults = [managedObjectContext executeFetchRequest:request error:&error]; I'm getting the right result from the above, but the app crashes after accessing it (EXC_BAD_ACCESS). How do I just copy the contents of fetchResu...

iPhone Crashes After UIImagePickerController Finshes

I am using the iPhone camera to capture an image and them resizing and adding a rounded corner. I'm having some users complain about crashes and I can't seem to find the problem. Also, the code runs very slow after selecting an image. Can anyone offer suggestions to improve the method below? -(void)imagePickerController:(UIImagePic...

Having a UITabBar AND a UINavigationController in an app?

Hey everyone, I am new to iPhone development and I'm not understanding the whole UINavigationController and UITabBarController idea. Is one a substitute for the other - how do apps such as Tweetie combine both? I'd like to have my app have a persistent Tab Bar @ the bottom (which seems to be working), but also a Navigation bar at the to...

Keeping UINavigationController's navigationBar hidden after UISearchDisplayController selection

I have a UISearchDisplayController setup with a UITableViewController which is nested inside a UINavigationController. When a selection of a cell is made, UITableView's didSelectRowAtIndexPath method is triggered, which pushes a new view to the parent navigation controller. This new view should have the navigation bar hidden on entry. ...

Individual Volume Controls over multiple Streamed mp3

Hello Everyone!! Hope you all are fine. I have an issue with Controlling volume. In my application I am streaming multiple mp3 files, and i am successfully playing them also at same time using threading. But now i want to have individual Controls over every streamed file. I am using Example Code "iPhone Streaming Player". How do...

iPhone & iPad - including a class will increase binary?

I have a custom class I use frequently on my projects. This class has several methods but not all of them are used in every project. My question is: including this class on a Project will bloat the project with useless code or will the compiler just include the methods used? I mean, if my class has 30 methods but just 4 are being used ...

Any easier way to implement an image slideshow application in Iphone SDK 3.1.3?

I would like to make an application very similar to this one but with the zoom in/out functionality: http://www.metacafe.com/watch/4212791/chrissie_chau_portrait_application_on_iphone/ I already read this thread: http://stackoverflow.com/questions/1631170/iphone-image-slideshow And I tried the suggested codes in this site: http://lieve...

Using an animated UIImageView as an iPhone camera overlay

Like the title says, in the iPhone SDK, I want to create an animated UIImageView and use it as a camera overlay. However, nothing appears. I've been using the same setup to display a static image as an overlay, but when trying to use the following code, no overlay appears: imageView.animationImages = [NSArray arrayWithObjects: ...

How to use LinkedIn API in iPhone SDK?

I want to use the LinkedIn API in my project, but I haven't found any good tutorials about using LinkedIn API. How to use LinkedIn API? "A beginners guide/introduction" of "basic concepts" would be helpful. OK, after googleing around I went to this link LinkedInAPI. I filled in the form but I am unable to understand what the "Integra...

iPhone & iPad - how to include frameworks in a project with two targets

I have a project that was developed for iPhone OS 2.0. I am transforming this project to have two targets (iPhone & iPad). This will not be a universal binary. It will have two different binaries. In the old project, if I right click on a framework and choose REVEAL IN FINDER, I see the framework is a 2.0 one, for example, UIKit is lin...

Jailbroken iPhone: Application Delegate Methods not Found on Device

Hi all, In the simulator, I don't have this problem but when I run the app on my device applicationDidBecomeActive and applicationWillTerminate aren't called. Is it because I'm jailbroken and running backgrounder etc? Here's the gdb log from Xcode: [Session started at 2010-02-28 15:37:00 +0900.] GNU gdb 6.3.50-20050815 (Apple vers...

Finding iPhone Application Identifier Prefix programmatically

Is there any way to find the application identifier prefix in you iPhone application programmatically? Or even just to get the entire Application Identifier string? I see you can find it by peeking into the "embedded.mobileprovision" file, but is there an easier way? (And I don't think that works if you're running in the simulator) EDI...

Self-signing Code in XCode for IPhone?

How can I self-sign an iPhone application using XCode? I have done the following: Created a cert following these instructions Modified my /Developer/Platforms/iPhoneOS.platform/Info.plist to include the two keys <key>PROVISIONING_PROFILE_ALLOWED</key> <string>NO</string> <key>PROVISIONING_PROFILE_REQUIRED</key> <string>NO</st...

Debugging EXC_BAD_ACCESS from a NSString

Hello All, I had a EXC_BAD_ACCESS message in my console. I read about the environment variables NSZombieEnabled and MallocStackLoggingNoCompact on this site. I created my environment variables: NSZombieEnabled = YES and MallocStackLoggingNoCompact = 1. In the console, I saw 2010-03-01 19:13:46.924 CruzNomad[7952:207] * -[CFString...

Intro Page for 5 Seconds after the default.png file and before the MainWindow.nib

Hey Guys , I had created a project where the default.png sleeps for 3 seconds and then the MainWindow.xib is loaded I wanted to create a new IntroPageViewController.xib before the FirstPageViewController.xib loads . I wanted to put some text in the IntroPage which loads for 10 seconds and has a skip button . I already created the FirstP...

Compress File with .tar

Hello Everyone!! I want to Compress a folder lying at document Directory with .tar. I have generated one folder by name Content and few xml files and subfolders in it. Now I want to Compress this Content Folder. I did Successfully Compress with Zip and able to generate Content.zip. But I want to see it as Content.tar So how do i Co...