iphone

How to link to the iTunes store from iPhone app?

Hi, I am trying to set up an application in which users will be able to stream music. When the user is streaming a MP3, I'd like to set up a link to the iTunes store to buy the MP3. How can I do that? I feel like there should be some simple way of doing so using the song title and artist name, am I mistaking? Thanks ...

iphone mail won't display javascript in attached html files?

When I attach an HTML file to an email and then email it to my iphone, I can view the file perfectly. However, none of the javascript in the file seems to run - not even simple stuff like showing / hiding divs triggered by "onClick" events. Is there any way to make javascript run on attached files in the iphone mail application? ...

How do I debug when implementing the handleOpenURL message?

I'm writing an iPhone app that can be started via a custom URL. So, I override - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url To test my changes, I have to run the app in the simulator, then quit out and launch Safari. I then type in my custom URL in the address bar to launch the app. But every time I laun...

what to call viewDidLoad or loadview

Hi, I have a view controller class which loads from a .nib file. However, I also want to add controls (like UISwitch) to that view programmatically (UISwitch is not added to the nib file). In which portion of my code should I allocate the UISwitch control, viewDidLoad or loadView method? Thanks. ...

CFAttributedString on the iPhone

Hi, Is it possible to use the CFAttributedString type to draw formatted text on the iPhone? I see it in the documentation, but I can't figure out how to actually draw it to a context. Thanks, Kyle ...

Problem of subclassing UITableViewCell

Hi All, I have a class A that inherits UITableViewCell (to customize a table cell). It has members say x which is a UILabel. Now, if I want to set values like a.x.text ="some text" in the cellForRowAtIndexPath method, I am getting compiler error "error for member x in cell which is of non-class type UITableViewCell". Could you pleas...

How can I set the background of UITableView (the tableview style is "Grouped") to use an image?

Hello, How can I set the background of UITableView (the tableview style is "Grouped") to use an image? Thanks ...

Iphone SDK: Change navigation bar height

Hello , Can some one tell me how to change the navigation bar height. I am trying to do this but I think I am doing wrong. CGFloat navBarHeight = 10; self.navigationController.navigationBar.frame.size.width = navBarHeight; Thanks ...

iPhone web app development in ASP.NET - where to begin?

For iPhone web app development in ASP.NET, where do I begin? I'm considering using ASP.NET MVC, but how do I get started? Are there any weird caveats I should be aware of? Looks like these might be good resources: Mix: Mobile Web Sites with ASP.NET MVC and the Mobile Browser Definition File Rock the iPhone with ASP.NET MVC ...

Passing data from modal navigation controller to parent controller?

I'm starting out in iPhone development, and I'm trying to do a Contacts-style controller to add items to a table. I've got the two controllers designed, but I can't seem to figure out how to pass data between them. How can I get data from the modal controller to its parent? Just trying to call methods on parentViewController won't work ...

iPhone : Texture bigger than 64x64?

Hi, I took the example of GLPaint... I'm trying to put a background into the "PaintingView", so you could draw over the background and finally save the image as a file..... I'm lost. I'm loading the PNG (512x512) and try to "paint with it" at the very beginning of the program, but it's painted as 64x64 instead of 512x512... I tried be...

Which function is invoked once the view has completely finished loading?

Which function is invoked once a view (loaded from nib file) has completely finished loading on iPhone? ...

How do I test if a primitive in Objective-C is nil?

I'm doing a check in an iPhone application - int var; if (var != nil) It works, but in X-Code this is generating a warning "comparison between pointer and integer." How do I fix it? I come from the Java world, where I'm pretty sure the above statement would fail on compliation. ...

viewDidLoad gets called, viewWillAppear does not get called, view does not appear on screen.

Update It has been mentioned that viewWillAppear and viewDidAppear do not get called per the docs. However, I perform no initialization within these methods and no adding UI elements to the view. I was just using them to place break points to try to debug this. Any other ideas? Original Question I'm stumped. I'm refactoring some c...

How to change color of selected row in UIPickerView

Ok, maybe I'm missing something really simple and I apologize if that's the case, however, I've googled every permutation of the title and have not found! So this is simply what I want to do: change the background color of the label I'm using as the row view in a 2 component pickerview when that row has been selected. So I thought thi...

iPhone table cells: how to get them transparent and complex

Hi! I would like to build a table that looks almost exactly as the one in the iPhone's contacts app. When you click on a contact it shows the information related. The biggest problem comes when I try to build that: a table with complex cells, with transparent cells and cell with two buttons. How would you do that? Thanks! ...

iPhone equivalent of -doCommandBySelector:?

I want to push something onto the iPhone's responder chain. That is, I want to send a selector to a UIResponder subclass and, if it doesn't respond to said selector, have it pass it on to its nextResponder. Any thoughts? ...

Submitting a link via iPhone -> Facebook Connect

I'm trying to post links through the iphone facebook connect without using the feed control.. I want to simulate how the publish a story works on facebooks website, where i pass a link, and it returns back an image, story title, and a link. Right now I only know how to use the feed control, but I'm thinking there has to be a way to use p...

Does .h need to be included when using header search path?

I'm referencing a static library. I've dragged the library project into my app project and reference it relatively. The .a file from the library is linked into my app target. I've added a reference to the library's .h files' folder via "Header Search Paths" in the app project. Then I add an import in my app's .pch file to a particula...

rendering a waveform on an iphone

I was wondering if anyone has any suggestions on how to go about rendering a waveform of an audio file. I wold like to enable the user to set an in and out point of an audio track and I need to have a waveform so you can see where to put the points. Are there any libraries available for this or does it need to be a completely custom so...