iphone-sdk-4.0

CATiledLayer or CALayer drawing UIImage not working

Good day all; I am trying to manually (not using sublayers) draw images within a CATiledLayer but it is not behaving as it should with the defined solution. I undertand that when you call 'CGContextDrawImage' you must scale and translate so as to flip it but I cannot for the life of me, get it to work. I have a method called - (void...

iPhone 4.0 compatibility issue

Hi all, I am developed one iPhone application which is working good in iphone 3.0. While i am doing comparability with 4.0 it is giving some deprecated workings. Please find the code below..... [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]; Note: this is working fine in 3.0 but giving warning in 4.0 [[UIAp...

Accessing UIViewController from UITableViewController?

In iOS4, I want to use MPMoviePlayerController. I have a UIViewController that I pass to a custom class that manages MPMoviePlayerController. That plays video fine. I have another view that is a UITableViewController. Passing the UITableViewController to my UIViewController property on the video class doesn't work. I just get soun...

Address bar for UIWebview and zooming

I am making a mobile version on my mac Web Browser, Brandsonic Web. How do I do an address bar? A UITextFelid where you type a URL and it brings you to it. Also how do I make it so you can pinch to zoom? Thank you for your help. This is for the iPhone incase its not clear. ...

Device with OS3.0 not being detected after Xcode upgrade to 3.2.3 with OS4.0 SDK

I have recently upgraded XCode to 3.2.3 with 0S4.0 SDK. Now, after upgrading the setup, one of my device is not being detected by XCode. In the Organizer window, the device is displayed with a yellow status and XCode complains of "The version of iPhone OS on “” is too old for use with this version of the iPhone SDK. Please restore the de...

unable to play video in iOS 4

I have written code to play video in iPhone OS 3.1.3 and video is playing fine. but when i am trying to play video with the same code then video is not playing in iOS 4. I know that Media player framework is changed for iOS 4. Is there any way i can play the video on different OS without preparing separate binary?? Thanks, Jim. ...

mirrorring ipod screen on external monitor

I would like to display the ipod screen on an external display. For this I create two instance of UIWindow and add the my view controllers view as subview of these windows. But it is displaying only on external window. [window addSubview:tabBarController.view]; [window makeKeyAndVisible]; [externalWindow addSubview:tabBarController.view...

iPhone Build SDK 4.0 With 3.2 Target Won't Install on iPad OS 3.2

I'm building an app for iPhone/iTouch that I also want to run on iPads (not a universal app, but one that just runs on on iPad with the 1x/2x button in the lower right hand corner). I'm using iPhone SDK 4.0 and setting the following: Base SDK: 4.0 iPhone OS Deployment Target: 3.2 When I do this, I can build an app just fine and run ...

who released my object on the handler file?

Hi guys, I'm a newbie on the iphone development world.. I started a new project, I used it to test what I learned about objective c, it basically sends and recives data from my local server, then, I store some of that data inside the class, it works fine. Everything is on the command line. my class definition: @interface MyClient : N...

iPhone 4.0 build on iPad

I am currently developing a app with deployment target as iPhone 3.1 and base SDK as 4.0. I am not designing my app specially for iPad, many folks say that this will work on iPad as well. So please let me know whether this is correct ? if yes, what should be specified @ iTunes connect for iPad and iPhone? should we specify anything spe...

NSTimer non repeating timer - retrieve timeInterval.

Hi guys, I am using a NSTimer instance that is called after 300 seconds. The code is something like this: timer = [[NSTimer scheduledTimerWithTimeInterval:300 target:self selector:@selector(aMethod) userInfo:nil repeats:NO] retain]; I understand that since this is a non-repeating timer, that [timer timeInterval]; returns 0. Is there...

Iphone crash when loading large size image for zoom out

I have done the zoom out the large image(3200X4400) using scrollview. I got the result also "Build suceeded".But Iphone crash. Note:There was no error and warnings when built the application Need help on this Thanks in advance ...

FacebookConnect for iPhone - Error launching remote program: failed to get the task for process

I am having a problem with ad-hoc distribution in iPhone. I have developed an application in sdk 4.0. I have a valid developer's license and I have added provisioning profiles in my project. When i run my application without FacebookConnect inluded in the project everything is fine. But as far as i include FacebookConnect into my project...

root.plist changes not visible on iphone

Hi, when i add new entries to my settings bundle root.plist file, build and run the app, the new settings are not visible within the app. I've of course used a unique key for the new entries. In my root.plist file in the xcode project the file shows the changes, but when i get the current file from the iphone via the organizer, the cha...

UIKeyboard is not added to UIWindow subviews

I used to use the following code to add a UIToolbar just above the UIKeyboard and being attached to it. I just switched to the iPhone OS 4 and I realized that it's not working anymore. for (UIWindow *keyboardWindow in [[UIApplication sharedApplication] windows]) { for (UIView *keyboard in [keyboardWindow subviews]) { //print all...

Is local Notification feature available in iphone os below 4.0?

Hello Is local Notification feature available in iphone OS below 4.0?In OS below 4.0 how can i send notification from the app even the app is not running.I don't want to use push notification(notification from any server side).Please guide me. Thanks. ...

how to remove a navigation controller with a view

Hi, I have a tabbar application with a navigation bar. For one of the actions I am instantiating a navigation controller programatically and adding a view with tableview. I want to remove this navigation bar and tableview programatically clicking a button on the new navigation bar. how to do this ? I tried popview but it is not poping ...

removing the current view from the tabbarcontroller

hi how to remove the current view displayed on tabbar controller. the view is added using [self.tabBarController.view addSubview:myView.view]. What should be done in myView to remove this view. ...

iPad/iPhone TableVIew help pushing a new view...

Hi all, So we have recently started developing applications for the iPad for our company. Unfortunately none of us here have ever done any iPhone/iPad development so we are just kind of learning on the fly and winging it. Basically our problem is happening when we try to push a view onto the screen when a table row is clicked. Neithe...

iPhone App: Best Practices to store/retrieve static data

I need to load about 500 records of static data to display. I would like to know the best practices to store/retrieve data among using xml file, array, sqllite using core data in terms of simplicity and performance. ...