iphone

Link to iTunes music

I would like to enable users to as simply as possible go to a certain music album in the iTunes music store (not the app store). Is it possible to create such a direct link that opens iTunes music store with particular music album or song? You can see such behavior in Shazam. ...

No leaks appearing in Instruments, even though I'm sure they exist

Hi, I'm checking for leaks in Instruments, and I've set to check every second, but no leaks are appearing. I'm sure there must be some in my app, is there anything which could stop these from appearing? Is there a good way I can create a leak so that I can test if leaks do show up in Instruments? Thanks! ...

C# iPhone push server?

Im attempting to write a push server for the iPhone in C#. I have the following code: // Create a TCP/IP client socket. using (TcpClient client = new TcpClient()) { client.Connect("gateway.sandbox.push.apple.com", 2195); using (NetworkStream networkStream = client.GetStream()) ...

Setting GCC 4.2.1 options in Xcode

Howdy, I have a few questions about Xcode and interaction with GCC 4.2.1: It doesn't seem as if Xcode Target Properties inspector exposes all possible GCC options. Is this correct? More specifically, I'm interested in setting the "mfpu" option, as mentioned in the arm_neon.h intrinsics header. Is this possible or supported? Or perhaps...

iPhone App Development on Ubuntu

Is there a way to use Ubuntu Linux for developing iPhone applications destined to be listed on Apples app store ? ...

how do i store audio files in sqlite3 database and play them in iphone?

i want to store audio files(any of these formats mp3,wav,and iphone supported) in database and play them in iphone...any idea how to do this? ...

How do you draw a cylinder with OpenGLES?

How do you draw a cylinder with OpenGLES? ...

Which block of code is 'better'?

In order to promote good programming habits and increase the efficiency of my code (Read: "My brother and I are arguing over some code"), I propose this question to experienced programmers: Which block of code is "better"? For those who can't be bothered to read the code, is it worth putting a conditional within a for-loop to decrease t...

Public scope in Objective-C?

Hi there! I’m sure this is a simple one, but it’s been elusive so far, and I’m stumped ... How do I declare an Ivar so that it’s accessible from ALL Classes in a project? [Don’t know if it matters, but the ivar in question is (an instance of) my Model class, whose data needs to be accessible to various view controllers.] Best as I ca...

Auto rotation when iPhone rotate..

hi I am new in iPhone development... now i developed one Test application.in it 4 view is there.. my problem is that..when i rotate my simulator first 2 view will rotate automatically( landsacpe and Portrate mode).. but 3 and 4 not rotating . that time i got one exception.. that is //------------------------------------------------...

iPhone - Using NSCoder with subclass of UIImageView

Hi I have created a subclass of UIImageView and I am handling the touches for its objects inside the subclass itself. Now when the user is about to exit the app I want to save the state of the images. And as there are multiple transforms which might have taken place on the images (I am saving all the transforms in a dictionary), I want...

open google maps to bus directions

I realise that you can open the google maps app ready for directions by doing something like this: NSString* urlString = @"http://maps.google.com/maps?saddr=London+UK&daddr=Birmingham+UK"; [[UIApplication sharedApplication] openURL:[NSURL URLWithString: urlString]]; But is there a parameter I can add to automatically switch to bus...

UIWebView rotation and position

Hello, I use a UIWebView displaying a PDF file. By default the PDF is displayed in portait mode but the user can rotate the iPhone. The rotation work well, but after being in landscape, the PDF position is not the same as in portrait. Whe I switch back to portrait mode, the scroll is at the "old" position in the PDF. My controller send...

How to search nsmutablearray in objective c-iPhone app

Hi All, I am reading a RSS feed into nsmutablearray. i want to search the xml feed. for that i want to search nsmutablearray. i am very new to iphone apps. can some one helpme with this.. thanks, ...

iPhone Drawing in tiles - Keeping track of original position of image on them

Hello guys. I'm trying to draw images on tiles based on a point that is fine only for the whole width and height of this other image. I'm using the Tiling example from ScrollViewSuite. I can't seem to figure out how to translate this point to the tiles coordinates when zooming in and zooming out. What I wanted is to keep the position of ...

iPhone: Problems with Formatted String (Objective C)

I need help. How come this does not work: NSProcessInfo *process = [NSProcessInfo processInfo]; NSString *processName = [process processName]; int processId = [process processIdentifier]; NSString *processString = [NSString stringWithFormat:@"Process Name: @% Process ID: %f", processName, processId]; NSLog(processString); But this doe...

Ambient light detection - iPhone

Hello, I'd like to use the device's ambient light detection for my app (to set my app luminance in relation to daylight/moonlight). Is it possible? If so, where can i find the API? Thanks for your future answers. ...

Influence of tiling image size on page rendering speed

If a background image is tiled, do the dimensions of the image file have any influence on page rendering speed? I imagine that the smaller the image, the more blits have to be performed to fill the target area, so the longer the page will take to render[1]. Do you suppose this is true? I'm asking mostly from the perspective of the iPho...

How to add an「i」button like the Stocks application in iPhone?

Hi, I want to add an「i」button on the top right in the navigationbar, just like the one in the Stocks application. Does iPhone SDK has this built-in button? I looked up the document but couldn't find any. Thanks a lot. ...

Problem in uploading

i have build my project in iphone sdk 3.0.i have used frameworks that is not available in iphone sdk 2.2.1. while their uploading on app store their is one option :-choose you device type for users running in iphone os 2.2.1 and below. option 1)iPhone only option 2)iphone and ipod touch(2nd generation) option 3)iphone and ipod touch a...