iphone

URL for the Artist page or search page of App Store?

I am creating an iPhone game. I want to have a button in my game that takes people to the other games by me. I get the URL from the iTunes (copy URL) like this: http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=307450671 But when I open this URL in iphone, it take me to the iTunes, not App Store. and I also tried http://p...

UIWebview and HTML

i have a UIWebView control which loads given html file. my html file contains custom tags how to parse that file before loading? ...

How do you override UIView's +(id)layer; class method?

I read in the documentation that a UIView's 'layer' property is read only and that you must override UIView's + (id)layer; class method to access the layer's styling properties. Are there any examples of overriding this method to return a layer/view with styling properties already applied? ...

iphone NSURLConnection simultaneous requests limit

Is it possible to make simultaneously two requests in parallel to the same server using NSURLConnection? I'm trying to do it, and it looks like the second request do not start until the first one finishes. ...

iPhone: Change custom button graphic

I need to programmically change the graphic for a custom button and I'm puzzled why the code below isn't working. I can uncomment the first line and hide the button, so the IBOutlet is connected. The variable cardString points to a valid image (0-51.jpg). //[c1 setHidden: YES]; cardString = [NSString stringWithFormat:@"%d%s", ca...

Another question about iPhone application state

Hi, I have another question about restoring application state, on the iPhone. Simple data (like the selected tab) can be stored in NSUserDefaults, but it is not enough. I want to restore the whole state, including the Navigation Controllers (go to the sub-sub-sub View Controller). My problem is that my application is divided in severa...

How to solve "could not find audio decoder component 64766938 for registration"?

How can I remove this "could not find audio decoder component 64766938 for registration" which is shown in nslog? ...

iPhone Error while building application for Device

I want to deploy an application to the iPhone which I previously tested on Simulator. I am following the jailbreak way but This Link but when I change the setting to Project, Set Active SDK, Device, I get the CodeSign Error as follows: Code Signing Identity 'iPhone Developer' does not match any code-signing certificate in your keychain...

UITableView - scroll to the top

Hi, In my table view I have to scroll to the top. But I cannot guarantee that the first object is going to be section 0, row 0. May be that my table view will start from section number 5. So I get an exception, when I call: [mainTableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UITableViewSc...

Handling URL Redirections in UIWebView

Hey guys, I have a UIWebView in my app that is used to show webpages of links clicked within my app. Some of the links are URL-Shortened links, such as tinyURL or bit.ly. These url's redirect after the initial url load. My problem is that some of the links in my app are URL-Shortened links to resources that are not webpages - such as ...

Is there a way to swap layers or views in the middle of a CAKeyframeAnimation?

I am running a keyFrame animation to move and flip a playing card view using CAKeyframeAnimation. is there any way to swap the cardFront and cardBack layers during the animation? or am i taking the wrong approach here... ...

What explains best the difference between [myVar dealloc] and [myVar release]?

I think I know the difference, but don't know how to explain that correctly. dealloc removes the memory reserved by that variable totally and immediately. release decrements the retain counter of that variable's memory by -1. if it was 1, then it's 0, so it would have the same effect as dealloc in that moment. is that right? or is the...

Creating a view like Facebook Profile and Wall in an iPhone application

I have to create an application which contains the same type of view that the Facebook iPhone application has - Profile View and Wall portion. My requirement is to have a question and the user can give an answer with an unlimited number of lines. So obviously I have to use UITableView. Now my problem is deciding my table row height if th...

Issue submitting XML from an iPhone to a .NET SOAP Web Service

My iPhone application needs to submit an object to an already existing .NET SOAP Web Service so it can be saved to a database server. I figured the easiest way to go about this would be building an XML representation of the object and passing it to the web service. However, this doesn’t seem to be working. If the XML is more than one lev...

How can I ‘shine’ a png on the iPhone in code?

How do I replicate the effect that the app launcher uses on a square .png to show my users what their icon will look like as an app badge. NB - I want to do this in code on the iPhone, not in photoshop on my computer. Thanks! edit: trying to be really clear here. How do I do this with code! I have tried creating an overlay, but the sh...

How can I switch Content Views with an water-effect transition?

In the Photos app, there is a nice water drop effect used for transition. I had seen an app a while ago that used this same water effect transition for it's content views. Unfortunately, this transition type is not listed in the UIViewAnimationTransition documentation. But since this third party app used it (I don't remember it's name)...

What common backend can be accessed securely from an iPhone and Android application?

I'm thinking about creating an application for the iPhone and Android that will need to access a common backend to retrieve account information. Can both access a web service over https? What other way would allow me to have one interface to the backend that is accessible by both? ...

NSInvalidArgumentException

I'm getting a crash from this routine after adding the :(id)sender so I could determine which button called it. When set up as plain old toggleView3 it works perfectly. The crash occurs when detailView is toggled back to docView. 'NSInvalidArgumentException', reason: '*** -[RootViewController toggleView3]: unrecognized selector sent to ...

How do I make a water effect view with openGLES on the iPhone?

I found this vid: http://www.youtube.com/watch?v=eVi6ThY3LRs I wonder if that's some kind of standard effect of openGLES. I'm pretty sure it is, since I have seen this pretty often. KoiPond uses it, DuckDuckDuck uses it. A lot of games use it. They're not all astronauts. They're normal programmers ;) So how is this done? Is there any tut...

Why does the codeSense feature of Xcode only work sometimes?

For example, when I type [UIView commitAni then I would expect that it finishes it like: [UIView commitAnimations so that I have: [UIView commitAnimations]; but here, it doesn't. Although I have included CoreGraphics.framework Strange: When I try with other animation related stuff, it works: [UIView setAnimationDura will be ...