iphone

What is __AVAILABILITY_INTERNAL__IPHONE_2, NS_AVAILABLE ? Trying to use NSNumberFormatter, returns (null)

I've been having some trouble getting NSNumberFormatter to work properly. I'm compiling in iOS4 with the Three20 Framework. All of the NSNumberFormatter selectors require something called NS_AVAILABLE as a second parameter on the selector: [numberFormatter setCurrencyGroupingSeparator:(NSString *)string __AVAILABILITY_INTERNAL__IPHONE...

How to found the problem of Device crash log in Iphone

I am new one to develop iphone App. so help me to found out error in crash log. In crash log contains only library or framework. Help me to found out crash line . ...

Why doew my viewController do the action with wrong direction?

Why my viewController run the action with UIViewAnimationTransitionCurlUp sometims is Horizontal and sometimes Vertical? ...

How to record videos from an iphone App

Does anyone know how to record videos from an iphone app without making it to close.. it would be greatly helpful, if any one provides the sample code... ...

How do I check for an error after [NSData dataWithContentsOfMappedFile:]?

I have this code in my project: id mappedData = [dataWithContentsOfMappedFile: path] Obviously, if mappedData is nil it didn't succeed. But how can I get details about why it didn't succeed? There's no dataWithContentsOfMappedFile:withError:. ...

How to download a video from a given url and store with app

How to download the video from a URL and store in the application ...

[ios.cocos2d+box2d]how to disable auto-rotation?

I have created a project with cocos2d 0.99.5 + box2d. When I rotate my iphone, Screen automatically rotated too. So the boxes Flew up into the ceiling. How to disable auto-rotation? plz ...

Why retainCount returns value after release being called?

Hello, I have the following simple piece of code: NSMutableArray *array = [[NSMutableArray alloc] init]; NSObject *o = [[NSObject alloc] init]; NSObject *o1 = [[NSObject alloc] init]; NSObject *o2 = [[NSObject alloc] init]; [array addObject:o]; [array addObject:o1]; [array addObject:o2]; NSLog(@"-------");...

restrict delete of a referenced managedobject

I have a simple Core Data model: Entity Team (name, logo) Entity Sport (name, teams to->many Teams) So, a Sport can have many Teams I create the Team first, then add or edit a Sport and add the Teams. If I delete a Team, my app starts crashing. I believe because it is looking for the deleted reference. So, how can I restrict via Core...

universal application ipad/iphone image naming convention?

Hi In my application i need to get the correct image based on the device ipad/iphone4/iphone3 device. for example i have image name a.png(width 40,height 20) its for iphone3/ipod ,and if i give [email protected] (width 80,height 40) its for iphone4 , if i mentioned the code UIImage *myImage=[UIImage imageNamed:@"a.png"]; myImage contains...

Customizing UITabBarController appearance

I've been asked by a client to customize the appearance of the UITabBarController. This is for a private project which will not be released on the AppStore. Basically, I need to give it a different background, and different looking select tabs. Does anyone have any clues on how I could achieve this, short of not using the UITabBar altog...

How can I add the following extra linker flags?

To support OS 3.x, please set Base SDK to iPhone Device 4.0 and iPhone OS Deployment Target to iPhone OS 3.x. Extra linker flags may be needed if NSConcreteGlobalBlock and UIBackgroundTaskInvalid runtime error occur under 3.x. The linker flags are: -weak_framework UIKit -weak_library /usr/lib/libSystem.B.dylib EDIT: im still getting th...

The 'rootViewController' outlet of UIWindow is not available on releases prior to iOS 4.0

I am getting the following error on pre-iOS 4.0 builds: The 'rootViewController' outlet of UIWindow is not available on releases prior to iOS 4.0. Remove the connection and instead programmatically add the view controller's view to the window after the application finishes launching. How and where do I do this programmatically? ...

How to delete calendar events faster?

Following code works and deletes all calendar events from iPhone calendar database. But events are deleting very slow: 2 events per second on iPhone 3GS. So if you have 3000 events - then it's 25 minutes to erase them... How would you optimize this code? Maybe I am doing something wrong? Thanks. - (void)deleteAllCalendarEventsFromIPho...

how to centre the image when scrollviews are used

hello every one .My problem is i would like to display images more like photo App.I found the answer for only one image zooming and panning.But i have three images on the view and i need to provide zooming and panning functionality for three of them synchronously how can i do this.Please help me.I have been scraching my head for the pas...

UISplitview can't show full with UIInterfaceOrientation~ipad

I added <key>UIInterfaceOrientation~ipad</key> <string>UIInterfaceOrientationLandscapeRight</string> in Info.plist When I run the app, app can't show full. Why and how to make full to rightbar in UISplitview ? ...

Best XML parser 4 iPhone? Best way to parse a XML Document 4 iPhone?

Hi, I need to parse a XML and then print it in a tabla view. Someone who can help me. Explain me about parsing or giving me documentation? Whatever... By the way i'm using a parser class, that I don't understand much... that works in iPhone Simulator but don't works in my device. I don't know why... Thank you so match. Any help will be...

Adobe Flash CS5 for iPhone game development?

Since Apple loosened their terms again, is it posible to develop a game in FLash CS5 and publish it on the Apple App Store? Are there actually any real apps / games on the App Store that were build on Flash? ...

How to check the FFT results in iphone?

I have done FFT of a audio file using OouraFFTl.How to check whether the Sampled output is right or wrong.Whats the better and easy way to check it.This is my code. MyAudioFile *audioFile = [[MyAudioFile alloc]init]; OSStatus result = [audioFile open:var ofType:@"wav"]; int numFrequencies=16384; int kNumFFTWindows=10; OouraFFT *myFFT ...

Left Call Out View is not working in 3.0, 3.1, 3.1.3.... but it is working in 4.0....

Hi Guys, I have got some problems in MapKit, that is leftCalloutAccessoryView is not working in 3.0, 3.1, 3.1.3 but it is working in 4.0 Can please suggest any solution for this. Thanks, Madan Mohan. ...