iphone

can the iphone prompt for a webclip with javascript?

Is it possible to invoke the book mark action sheet in mobile safari through javascript? Basically simulate the user pressing the "+" button. Or better yet, touch a link in a web page and auto-add the webclip to your home screen? ...

How do you get an iPhone's Device Name in C#

I'm writing a C# winforms application that will transfer files from an iPhone or iTouch using the Manzana library. My iPhone is called Mark's iPhone and I want this to display in the application. I can't find any simple way of finding this. Can anyone help. Please! ...

How does Interface Builder know about UIViewController's view?

UIViewController has an ivar (and @property) called view. It is not however, an IBOutlet. When creating a view nib in Interface Builder, you typically set File's Owner to be your UIViewController (or subclass thereof), and you wire the nib's view to File's Owner's view outlet. How does this work if the UIViewController view member isn'...

How do I add images in the composer sheet of an iPhone application.

Hello all, I am using inbuilt composer of iPhone to send an email in my application. I want to add images to body of my email. Please remember I want to place images in the body and not want to attach the images to the email. I know how to attach them. Its like I want to place multiple images in the body with some details for them in fr...

Detecting tap to Show/hide UINavigationBar

Hello, I am kinda new to iPhone development and haven't done anything yet envolving touches. My view hierarchy like this: UIView - UIImageView - UIScrollView - CustomView How do I detect if the user has tapped anywhere on the screen so I can show/hide the navigation bar accordingly? I don't need user interaction on my CustomView bu...

Is There Audio Session For MPMusicPlayerController?

Hello Friends, we can set audio session for AVMusicPlayer like that can we set Audio session for MPMusicPlayerController, so that we can play applicationMusicPlayer or iPodMusicPlayer even our device is locked or sleep. If anyone know about it please comment on it and it is helpful if you can write the steps. This is how i wrote Audi...

Phone Number Auto Spacing like AddressBook on iPhone

I want to be able to replicate what the AddressBook does in Contacts app and Phone app when entering a phone number in both the keypad on the Phone app and adding a contact. I know I could do it checking each time a character is entered into the UITextField but there are hundreds of number formats out there and it would take me forever...

Is there a tutorial about how to use FMDB, the sqlite3 wrapper class?

The FMDB page just offers the cvs checkout. Maybe someone out there wrote a good tutorial on how to use FMDB with sqlite3 on the iphone? ...

iPhone App Delete Badge

I'd like to replicate the visual style of the Springboard's delete badge when you want to delete an application. I've gotten it pretty close, but it's not quite right, and I get the feeling that Apple isn't rendering these on the fly, but rather has a set image that they use. I was wondering if anyone has done this before, or has such a...

Besides sqlite3, CoreData and NSUserDefaults, what are the most easy to handle data persistance techniques in iPhone OS?

I think that sqlite3 is a little overkill in complexity for my purpose. I have a really tiny app that takes very tiny input from the user. Inputs are floating point values, dates and integers. I'd say even a hardcore user will generate not more than 10 kb of data with that app. The object graph can be described pretty good with an calcu...

UIButton not working in tableview cell

I've added a button to a tableview cell, but I'm having two problems with it: 1) I've invoked a setTarget:action: method on the button, but the action: method never gets called: [playButton addTarget:self action:@selector(playButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; 2) the cell itself ends up g...

Where would NSKeyedArchiver typically store the data on the iPhone?

I try to imagine how that would look like in the iPhone's filesystem. When I archive some stuff, it goes maybe into the documents dir, right? Could I take that file then and send it to a server for backup purposes? ...

What are my iPhone SDK Development Setup Options?

I am interested in doing some iPhone development. According to Apple, the SDK hardware requirements are an Intel based Mac, running OSX 10.5.7+. 1) Is it possible to reliably run the SDK on non Mac hardware? On some sort of hackintosh setup? 2) If I am running on Apple hardware such as a Mini, is it possible to remote desktop into th...

How to tell with Objective-C if the iPhone is connected to a wifi network?

Hi, In the context of an Objective-C, iPhone application, I need to be able to tell whether the iPhone is connected to a wifi network, and if possible listen to changes in this state. Does anyone know how to do this? thanks, gabouy ...

UIWebView doesn't respond to link-taps when the link goes to a different domain

I load a page, saw on twitter, using a line like this: [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://twitter.com/OGOchoCinco"]]]; The page shows up fine. If the user now taps on a link that brings them somewhere else within twitter, she is brought to that page. However, if the link goes to http://...

Getting Error While sending an image From an iPhone emil using MailComposer

Hello all, I am using MailComposer available in iPhone sdk3.0. I am using the following code to add image using html to my email body. It displays the image properly in mail body. But when I try to send it. It breaks leaving message in the log , No image found. Can anyone help me regarding this where am going wrong. Like I also tried a...

Subclassing UIImage and adding to UIImageView

Can anyone help me with this. I need to do custom drawing code in -drawRect so I subclassed UIImage. How would I initialize my custom UIImage with an image? Say I override the imageName method, what would I need to do in this method? After initializing can I add it to a UIImageview like so initwithImage:? ...

Signature Panel

Hi Friends, My requirements are I need a panel where user can make signature. The concept is like when user touches the screen and move the pointer, it should be marked with continuous line. Please gimme some idea how to implement this?? Thanks in advance, Regards, Rahul ...

Invoking @selector methods between classes

I see many Objective-C/Cocoa SDK apis where you can specify a target and an action that will get called back. I want to do the same in two of my classes but when I store the passed in selector and later try to invoke it, I get the exception, "unrecognized selector sent to instance" I pass off to ClassB the target and action lik...

iPhone Object Allocation, GeneralBlock-24 & GeneralBlock-48

Hi All, I'm finishing up my third iPhone App. Cleaning up code and such. I have 3 memory leaks after the launch of the application. These remain constant no matter what I do in the App (no more leaks). The issue is that my Net Object Allocation keeps growing up. There are two blocks in particulat, GeneralBlock-24 & GeneralBlock-48 that ...