iphone

setAnimationTransition:forView:cache: objects are "glitching" during transition

I have UIViewAnimationTransitionFlipFromLeft in my application and it displays a new view with a text field and two buttons. On the iPhone, as it's loading the view, the text field will be scrunched up and the text on the buttons off-center until the view has loaded, then after a very small delay, the text field and buttons' centerings w...

Why NSURLConnection blocks my UI? [Solved]

I've been reading several threads and questions about this issue but I didn't find the solution. I have some asynchronous calls performed with [NSURLConnection connectionWithRequest:anURLRequest delegate:self]; The problem is that I want the interface to be operative but it is blocked until the connection is finished. Is this solve...

MPMoviePlayerViewController for older versions of iPhone SDK

If I use MPMoviePlayerViewController in 3.2/4.0 it builds fine. If I use it in 3.1.3 and below the build fails with error Expected specifier-qualifier-list before MPMoviePlayerViewController' I use this class in 113 places, so I get 113 errors. What is the best way to fix this critical issue? ...

I've updated my iPod touch to 4.0 and now I can't run my app on it (details inside)

I can't run my application after upgrading. I've downloaded the 4.0.1 yesterday and restored my iPod to 4.0 today... It doesn't make sense. Did anyone had this problem with his iPod? Look at what the organizer tells me: The version of iPhone OS on “BFipod2” is too old for use with this version of the iPhone SDK. Please restore the dev...

Array is empty after function

Hello everyone, I am newbie with Cocoa Touch, I have a problem that I try to figure out. I will appreciate if anyone could help. I would like to create a tableDataList to display on the table. AsyncViewController will call TableHandler fillList method to initialize table data. But after fillList call, the tableDataList return empty. C...

iphone get back button text

Sorry for the another newbie question. I tried to get the back button text value in viewDidLoad but it always displays null when I navigate through controllers. NSLog(@"-----------> %@ ", self.navigationItem.backBarButtonItem.title); How to get the back button text value? ...

how to add initloader in iphone

hi i am new to iphone.i have done a small application but what i need is when i click the application icon it shows just like process bar going on and opens the application how can i done this pls help me ...

how to update data from web to exisitng file for iphone

NSString *applicationDocumentsDir = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; NSString *storePath = [applicationDocumentsDir stringByAppendingPathComponent:@"sample1.cfg"]; NSURL *instructionsURLd = [[NSURL alloc] initFileURLWithPath:filePath]; NS...

How do we pass the arguments in @selector with example?

How do we pass the arguments in @selector method for UIButton? -(void)loadView{ UIButton *btn1 = [UIButton buttonWithType:UIButtonTypeCustom]; btn1.tag=1; [btn1 addTarget:self action:@selector(showRestaurant:tag:) forControlEvents:UIControlEventTouchDown]; btn1.frame = CGRectMake(2370.828125,1020.015625,35,34); [i...

Why does my application crash when sending data via Game Kit?

I have been following this great guide on setting up bluetooth between 2 iPhones. However, what I need to do is send binary (for instance a video) instead of text. I load the data in to a NSData localData = [NSData dataWithContentsOfFile:videoPath]; Then a few methods on send it [self.gameSession sendDataToAllPeers:localData ...

unregisterForRemoteNotifications - completly remove from settings / Notifications

In the settings / Notifications my app is still there also after calling unregisterForRemoteNotifications and uninstalling the app. Is there a way to delete this setting without jailbreak my ipad ? I don't wanna jailbreak because i don't need it and wanna stay clean on the dev-ipad. ...

Is it possible to connect to SQL server in iPhone?

Hi Friends, Is it possible to connect to SQL server in iPhone?. I want to create a new application and i want to retrieve the data from SQL Server and displayed. Previously it created using ASP.NET and SQL Server. Now my client wants to display the datas which is retrieved in SQL server data base. But the database contains the huge amou...

SIGABRT error when I delete (while in the edit mode) a new row that was just added from another nav view DidChangeObject

I have a table populated with core data and when I press the add button it loads a new navigation view where I can enter data and save the new object. When the object is added in core data, the view is popped out and it goes back to the table where the new row is added at the right place (order alphabetically) with the right information...

Problem with finding leak code

I am using xcode 3.2 and I have leaks in my app but how can I find the line in my code which is leaking?? In earlier version of xcode I just used to double click on the object in the instrument which used to show the xcode with pointing the line with the leak. But in the 3.2 version I am not able to do that. Please anyone tell me how to...

How to parse such kind of Data using NSXML Parsing?

hi!How should i parse data which contains CDATA in the Attribute? ...

NSTimer selector calling

Can someone explain to me how exactly the NSTimer behavior is? Basically I want to know if there is a way to always have the NSTimer event happen. Event if there is currently something executing. For example, in: NSTimer* testTimer = [NSTimer scheduledTimerWithTimeInterval:.01 target:self selector:@selector(testMethod) userInfo:nil re...

How many iPhone users still use iOS3.1.3 and below?

My PM wants me to include support for older iOS versions before going to appstore I'm trying to figure out how to build for older versions below 3.2 but I'm un able to do so because MPMoviePlayerViewController isn't compatible? Should I just remove all 3.2+ code and use MPMoviePlayerController instead to dodge the issue? Or just expect...

how to design this scenario?

hi, Am developing one calculator type application. In portrait mode first 60% part of the screen contains 2 textboxes,3 sliders and 1 button. second 40% part of the screen contains 2 textboxes and 1 button. My problem is, when i click on center 'Calculate' button,the above part that is 2 textboxes & 3 slider disappears and result of...

How Prevent multiple times iPhone shaking ?

Hi, i used this method to handle shake event on my app , but i have huge problem that drive me crazy ! i use this method : http://www.iphonedevsdk.com/forum/iphone-sdk-development/55087-iphone-shake-detection-problem.html#post230283 but the problem is app detect multiple times shake event ! 2010-08-10 14:06:43.700 APP[406:207] SHAKE...

Creating a Swingometer on the iPhone using Core-Animation

Hi there, I'm trying to create a swingometer, a bit like the ones used in golf games, where the user holds a button to start a swing, releases at the apex to determine power, at which point the 'swing' reverses direction, and the user taps again on the way down to set the accuracy. Rather than having a bar that fills up, I would like ...