iphone

How to embed animation or the uikit elements to the video playing on the ipod / iphone ?

hi all i have an app in which as the app launch we are showing a image view on which a image is mounted and this is in the landscape mode as user rotate the orientation of the device to portrait mode we have to play some video. The playing video is of the length 2 minutes if user continue playing it inthe portarite mode than the video ...

Linking Static Libraries in iPhone SDK 3.0

I have an iPhone app that heavily relies on the OpenCV library; as such, I've compiled a static version of this library for inclusion with my app. The instructions for doing this are relatively straightforward: Using OpenCV on iPhone. The only gotcha I ran into was setting the linker flag, STANDARD_C_PLUS_PLUS_LIBRARY_TYPE to "standard...

NSMapTable missing from 3.0 headers?

I'm using NSMapTable in a program that must run under both 3.0 and 2.2.1. As expected, the program compiles without problems for the 2.2.1 libraries, but when I switch to 3.0, I get compiler errors: error: expected specifier-qualifier-list before 'NSMapTable' In other words, XCode can't find the declaration of the NSMapTable class. I ...

Why are static library headers not found?

I've used Clint Harris' tutorial to set up code sharing between projects, and everything works just as expected on my computer. But on my co-worker's machine, it seems the compiler doesn't find the header file from the static library project when he builds. My co-worker got my project by cloning a git repository. We've gone through all ...

UITabBarController: switch to a different view controller programmatically

In my iPhone app, to restore previously viewed tab, on launch I set the setSelectedIndex: (also tried setSelectedViewController: as per docs but to no avail) This works on iPhone OS 3.0 - however on OS 2.x the selected index greater than 3 (the first 4 tabs) doesn't switch to the required view. This is documented by Apple here: http://d...

String length with given font to fit UITextView 2 - The Return

In this question I asked for a good way to truncate a string to fit a given UITextView. Since there was no way provided by the SDK directly, I've ended up writing the recursive method below (only called by the following public method). However, this doesn't work unless I subtract a fudge factor of 15 (kFudgeFactor) from the field width w...

Using NSXMLParser with CDATA

I'm parsing an RSS feed with NSXMLParser and it's working fine for the title and other strings but one of the elements is an image thats like <!CDATA <a href="http:image..etc> How do I add that as my cell image in my table view? Would I define that as an image type? This is what i'm using to do my parsing: - (void)parser:(NSXMLPars...

Where can I find sample codes for iPhone applications?

I develop iPhone applications as a hobby. I want to make an application using UITabBarController, UINavigationController and UITableView . Could you please post links to example that use these three Classes? Thank you ...

Any way to make small web pages show up full size on iPhone?

I'm currently working on an intracompany web site which will be viewed on cell phones - at the moment, Palm Treos and iPhones. The Treo has a screen 360x360 so I'm putting all the page info into a 360x360 box. Works fine on the Treo, but when you log in to the site on an iphone, it shows up about 1/2in square on the screen. Is there a...

Make Video of iPhone App

Is there a way to make a video of an application for marketing a promotional purposes. Of course you can take all the screen shots you want but nothing beats a video to show transitions and capture audio and the like. ...

Which audio format would be the best?

I was using AVAudioPlayer to play multiple audio clips back to back but there was always a small silence between tracks and then i came to know of Finch, a library which uses OpenAL to play audio. with this the silence problem seems to be solved theoretically but then i found that it doesn't play m4a or any other compressed formats. Now...

UITabController iphone development

I am following the Iphone UI tab controller tutorial, I basically mimicked the code at the bottom link text // Create a temporary window object to assign to the window property UIWindow *tempWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Make the window background red so that you can see that the ...

Instance methods calling class methods calling instance methods

In a word, how? I have a view controller that creates a few custom objects. One of those objects needs to call a method back in the controller. The object looks like it wants to call a class method in the controller, which might be fine, except that class in the controller needs to call an instance method in the controller, and it doesn...

UITextView touch events not firing

I have a UITextView that I want to detect a single tap for. It looks like I would be fine with simply overriding touchesEnded:withEvent and checking [[touches anyObject] tapCount] == 1 , however this event doesn't even fire. If I override the 4 events like this: -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UIT...

iPhone Pushing View Controller in a left direction

I have an app that has a centre view with two views off to each side of it. I want to have two navigation bar buttons, left and right which push a new navigation controller onto the view from the left or the right. When you change views by pushing a new view using the pushviewController: method of NavigationController, the view appears ...

GPS Location

I want to get my longitude and latitude on iphone in objective C. can any one guide me how to get these coordinates programmatically ...

How Do I Change What the UIPickerView Says?

I am developing an app that uses the PickerView, but I can't figure out how to change what it says. Currently it just says "Cupertino, Sunnyvale, etc" and it won't go up or down. And when I do the simulator, it just shows up as a blue rectangle. ...

How to get RGB value of a pixel from a CGImageRef object?

I'm trying to get an RGB value of a pixel from a CGImageRef object. I know that I need to create a context or something but, how do I do this? ...

[IB] How to connect "File's Owner" with a button in a Toolbar?

Good morning, I just got creazy with connecting the "File' Owner" to a Button in my Toolbar. How do I do that? I only can grab the Toolbar but not the buttons inside. Anyone knows how to solve that :)? Thanks in advance! ...

Calling web service from another class.

Hi All , I will directly start with example to explain my problem: I have a Webservice Class that has all delegate methods used to call web service and then parse the responseXML. We have written one method in this class that initiates the webservice call and parsing of XML. The other two classes suppose A & B that want to use this webse...