iphone-sdk-3.0

iPhone & Ipad - UIGetScreenImage - how to capture in lanscape?

Apple recently decided to allow developers to use this UIGetScreenImage private API. I have implemented it and it works fine in portrait, but when I run the device to landscape (self.view rotates) and UIGetScreenImage continues to capture using the screen non-rotated coordinates. The result is a cropped landscape result. UIGetScreenI...

resize map icon when Zooming

Hi all I want to resize the map icon when Zooming is applied on mapkit.IS this possible ...

How to get UIViewController of a UIView's superView in iPhone SDK?

Hello all, I have a UIViewController in which i have a UITextView added from interface builder.Now i want to push a view when i click on hyperlink or phone number. I am able to detect that which url is clicked using a method i found in stackoverflow. Here is the method @interface UITextView (Override) @end @class WebView, WebFrame; @pr...

get all hyperlinks in array of uitextview in iphone sdk?

Hello all, I have a UITextView in which i have 5 hyperlinks and 5 phone numbers.How do i get all those hyperlinks and phone numbers in a NSarray? ...

Custom Numbers & Punctuation Keypad for UITextField

Hey guys , I am using a Numbers & Punctuation Keypad for the UITextfield , I want the user be able to use only the follows keys : 1. Numbers 2. Decimal / Dot /Period 3. Done / Return Key I want to disable all the characters as well as the Spacebar , how can I do that ? Well I could have used the Number Keypad but then how am I suppo...

iPhone - application being ejected

I have an application that is being ejected by iPhone OS for "low memory". I have passed it thru instruments and I see zero leaks, and memory usage is around 640 kb. The application crashes when I add objects to the screen. This is how it works. I have a UIImageView based class that is very simple and add a few properties to the objec...

Twitter problem on iPhone

Hello guys! I have a problem with the twitter login. I am doing the login with oauth. First login is good, and when I logout and make a relogin the twitter doesn't ask for my password and username, it gives the pin only. Is there a way to send logout to twitter? Because my logout is clears the NSUserDefaults only... If I use the author...

canOpenUrl and International Phone Formats

For the iPhone (not the simulator), I'm wondering if canOpenUrl for dialing phone numbers takes into consideration of the following: Region Format Carrier Basically, for example if I have a France number such as: 01 41 68 22 30 I'm unable to dial it on a North American iPhone device running under US/Canada Region Format. When I ...

canOpenUrl and tel://

I'm having trouble understanding how this method works. From the documentation, it specifies: canOpenURL: Returns whether an application can open a given URL resource. - (BOOL)canOpenURL:(NSURL *)url Parameters url A URL object that identifies a given resource. The URL’s scheme—possibly a custom scheme—identifies...

iPhone application doesn't install from anywhere else other than the dev machine

Hi, I created an iPhone application. I am distributing it with the ad hoc method. It installs just fine from the iTunes installed on the machine where the app was created. Anywhere else the iTunes just gives the error 'Resources have been modified'. Please help. ...

Simultaneously Audio Files streaming

Hello Everyone!! Hope you all are enjoying with iPhone Application Development.  I have an issue with Streaming an Audio File (specially mp3). I want to play multiple mp3 files from server side not locally. Kindly help me how do i Put this working. Looking forwards, Arun Thakkar. ...

UIImage orientation problem

Hello guys! Is there a way to set manually the orientation of UIImage? Or create with orientation or somehow? Thanks! ...

Iphone & iPad - how to exclude a resource from a target?

I have two targets on my project - iPad and iPhone. Some resources, as interface images, are exclusively for iPad and others for iPhone. How do I exclude an image, for example, of being included on a given target. This project of mine was created using that "transition" stuff and groups were created: Resources-iPad and Resources-iPhone...

viewWillAppear will not!

Hi! I have a UITableViewController where I want to avail of viewWillAppear, but it isn't firing for me. I suspected I had the delegate assigned incorrectly until I found viewDidLoad is firing fine. I'm trying to resolve it all day, and have a work around as you can see below, but I'm not going to get any sleep tonight until I figure ou...

IPhone SDK - Bluetooth capabilities

Hi all, with the current version of the iPhone SDK, is it possible to establish a bluetooth connection to any other bluetooth device, or are there restrictions? A customer wants an iPhone app to get specific data from another device via bluetooth. This device is measuring some chemical stuff and has a bluetooth interface. So the custom...

iPhone & iPad - two icons and two plists?

I have a product with two targets, one for iPhone and the other for iPad. I will build two separate applications, not universal. As I will have to have two icon.png files for the application's icon, as they differ in size, as I see I will have to have two info.plist files. right? I have created two copies of the info.plist file, named ...

How to Cache Elements in iPhone

Hello iPhone Gurus, I wrote a RSS based application that will fetch some XML files, parse them and throw them into a table view. I'm using the NSURLConnection and the NSXMLParser in order to connect and parse the XML content. I would like to cache those results so that once the user connected once to the application he could disconnec...

CAScrollLayer doesn't scroll!

Maybe it's because it's late. Whatever the reason I can't figure out why I'm having trouble with a simple CSScrollLayer example I'm trying. I add a 50 pixel Eclipse icon to a view based project and in my initialize method (called from initWithNibName:bundle:) I have this: -(void) initialize { CAScrollLayer *scrollLayer = [CAScrollLaye...

Problem in using Date formatter.

Hello Everyone!! Need Your help. I have an issue with date Formatter. I have Two string. one string contains date in form of MM/dd/yyyy; and second string contains time in form of hh:mm a. Now i want to concatenate this two strings and want output as a new strings in form of yyyy-MM-dd HH:mm:ss. I have tried following but unfor...

iPhone XML Parser - [c setImage:[attributeDict objectForKey:@"img"]]; WARNING

Hi I am having issues with the following and it crashes the iPhone simulator, while the script has no errors it did bring up one warning in this script. [c setImage:[attributeDict objectForKey:@"img"]]; The warning is City may not respond to -setImage: I am not sure what I have done wrong here is the fill source code. #import...