iphone-sdk-3.0

Bad Access Error in Cocos2D Game in SKD 4, but not 3

Yeah, so this one through me or a loop for a while until I figured out what was going on. With Apple releasing the final version of Xcode today, and iOS 4 coming out yesterday, I finally started to look into porting my apps to iOS 4. So I downloaded the new SDK, and got to work. After working on my app a bit, imagine my surprise when ...

how to make Device 3.1.3 not pass if(NSClassFromString(@"MPMoviePlayerViewController") != nil) this condition

when Run on Device 3.1.2, why it also pass if(NSClassFromString(@"MPMoviePlayerViewController") != nil) and do code of iOS4 then it will crash , how to fix this issues? if(NSClassFromString(@"MPMoviePlayerViewController") != nil) { // iOS 4 code NSLog(@"MPMoviePlayerViewController"); MPMoviePlayerVi...

multiple download threads from a single source via iphone

Hi, I have a problem of downloading 5 different files from a single server. Is that possible to download all 5 files from that server over 5 individual threads ? If yes, is that efficient than downloading each file one after another via single thread ? ...

UIImagePicker is being obstructed by UITabBar

I have created a Tabbar app where my Uitabbar is located in the app delegate. I am displaying a UIImagePicker and enabling the camera using iPhone SDK 3.0. How can I get the camera to: 1. Resize to smaller height above the tab bar. 2. Effectively hide the UITabbar so camera button shows up on bottom. I have tried many things that have b...

working with Grouped style with multiple rows in section in UItableview

Hi.. I have 2 sections in my tableview(Grouped style). One sections has 7 rows & other sections has two rows. The problem is that the last row of second sections is not selected..means it is displaying but not selected as other rows when clicking on the row. How i will solve it. Please help........ ...

Core Animation and Transformation like zoomRectToVisible

Hi ! I'm trying to get an effect like the zoomRectToVisible-method of UIScrollview. But my method should be able to center the particular rect in the layer while zooming and it should be able to re-adjust after the device orientation changed. I'm trying to write a software like the marvel-comic app and need a view that presents each pa...

NSArray objectAtIndex is not working. Please help

NSArray* address = [NSArray arrayWithArray:[detailItem addressArray]]; NSLog(@"address = %@", address); NSString* addressToString = @""; int arrayCount = [address count]; for (int i = 0; i < arrayCount; i++) { addressToString = [addressToString stringByAppendingString:[address objectAtIndex:i]]; if (i == arrayCount -1) { ...

badge on iphone homescreen

Is it possible to show a alphabet/special character instead of number on the app icon on home screen ? ...

iPhone core data upsert from downloaded sqlite

I want to introduce the ability for the my core-data app to download a NEW sqlite file and update its stored data. Note the data model is not changing. At first I am not worrying about user changes to the stored data, and simply want to overwrite it. I am finding the only way the stored data is updating is to change the name of the sq...

How to find the direction of a location (eg., parking area) from CURRENT location using mapkit on iPhone

I am new to using mapkit related. Suppose, that I am heading towards East. I want to know in which direction a place (eg., parking area) is located with reference to my CURRENT location. (For eg., like parking area A is in 60degrees anticlockwise direction etc) Any inputs are welcome. Thanks in advance. ...

Getting and setting user-agent in uiwebview in iphone??

i am trying to display an image from a url into my UIWebview but the image size is too small to be displayed without making it blurred by stretching it..Since i cannot auto-resize the image(as it gets blurred) i was thinking of getting and setting user-agent value for iphone...But i m not able to find much relevant info about it and i am...

Display speed on the video while capturing in iphone

Hi All, I want to do something as follows. When user is capturing the video from his iPhone 3G, 3GS and iphone4, he should be able to show some data on the screen which will be captured on the video it self, so when we will see the video again, he will be able to see the video along with data on screen. Like for example we can say I ...

loading and transitioning external images into UIwebview??

through parsing i have got two image links in an array which i want to display into my WebView each one after an interval of 5 seconds..as i am loading webview in my ViewDidLoad method i cannot determine where to use NSTimer scheduledTimerWithTimeInterval:.1 target:self selector:@selector(moveACar) userInfo:nil repeats:YES] and where ...

creating a custom control in iphone.

Hello everybody. I have made a custom control in my application. It is like a combo box. when a button is clicked a table view will appear. user selects a row from that table and the value will be displayed on either textfield or on the button's lable. Now i wanted to know, if it is okay if i make a custom control like this in iphone. Or...

Learning iPhone programming coming from C# background.

Hello All, I would like to put my foot in world of iPhone programming. I got fair bit of experience with C# coding. Should I go and start learning objective-C even before touching cocoa [or] there is better approach (i know nothing about iphone programming). Are there any recommended books / blogs I should go through for my learnin...

How to speed up my app for the iPad?

Application Specific Information: com.oneorangetree.iphoneexample failed to launch in time elapsed total CPU time (seconds): 3.500 (user 1.680, system 1.820), 17% CPU elapsed application CPU time (seconds): 0.920, 5% CPU When the app loads, it does ALOT of stuff in viewDidLoad It takes about 30 seconds to complete. How can I put thi...

how can i display image from url?

I have a string variable tmpImgURLStr which contains URL like www.abc.com/img.png. i want to display that image in my imageView for that i have use some code but it's not working which is given below: NSLog(@"Img URL === %@",tmpImgURLStr); NSData *mydata = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:[NSString stringWithF...

How to make an iAd integrated iPhone app working on previous versions of iPhone OS?

As title described, I integrated iAd into my iPhone apps. Everything worked fine in the iPhone simulator (iOS4). However, when I try to install it on my iPhone(version 3.1.3), I got an error: dyld: Library not loaded: /System/Library/Frameworks/iAd.framework/iAd Referenced from: /var/mobile/Applications/... Reason: image not found...

Getting leak in leak in [NSURLConnection sendSynchronousRequest:theRequest returningResponse:nil error:nil]

Hi all, I am having a leak in returnData= [NSURLConnection sendSynchronousRequest:theRequest returningResponse:nil error:nil]; The below is the code i am using NSString* curl = @"https://Some Url?ticket="; curl = [curl stringByAppendingString:self.ticket]; curl = [curl stringByAppendingString:@"&apikey=hjgajgfjaghjf&XM...

detecting touch events on UIWebview??

i am loading a image onto my uiwebview and when the user clicks the image i have a link which i want the user to be redirected to but i am not able to find any solution regarding it?? i tried to use (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest but it can only be for links and not for a image as when i tou...