iphone

Iphone UITabBarItems titles overlap

Hello, in my app i use a navigation controller and a tabBar for my views. The problem is that the titles that i have for the views are a little too long to fit.. they appear like in the photo below. could someone give any suggestions for resolving this problem? i tried subclassing UITabBarItem but i can't add a label as a subview, i c...

iPhone Development - Basic drawing and animation question

Hi all, I have a case where i'm drawing shapes, e.g. a Triangle (Points A, B, C). Now i want to animate it so that Points A, B, C move towards Point X, Y, Z. (Lets just say on button click) I'm using a drawRect: method in my custom view for drawing. I don't want my view to move, i rather want my drawing to move (because i have multiple...

How To Push Video on iPhone Simulator?

Hello, I would like to push a video into iPhone simulator to test video picking in UIImagePickerController. Is it possible to do that? And if it possible, could you please provide me with some advices? Thanks. ...

How to use a CGLayer to draw multiple images offscreen

Ultimately I'm working on a box blur function for use on iPhone. That function would take a UIImage and draw transparent copies, first to the sides, then take that image and draw transparent copies above and below, returning a nicely blurred image. Reading the Drawing with Quartz 2D Programming Guide, it recommends using CGLayers for ...

What does the Tiler Utilization statistic mean in the iPhone OpenGL ES instrument?

I have been trying to perform some OpenGL ES performance optimizations in an attempt to boost the number of triangles per second that I'm able to render in my iPhone application, but I've hit a brick wall. I've tried converting my OpenGL ES data types from fixed to floating point (per Apple's recommendation), interleaving my vertex buff...

how to send SMS/Email from an application

Hi all, first of all thanks a lot to all of you for past valuable suggestions,we are creating an application where on certain events wants to send email/sms to specified phone number we already tried with the openURL call but it opens the existing inbuilt email/sms application of the iphone.Our requirement is to send sms/email without o...

Why does this button not show? iPhone-dev

Just created a new project in Xcode (View based), and tried creating a button like this programmatically, but it doesn't show. Why not? - (void)applicationDidFinishLaunching:(UIApplication *)application { // Override point for customization after app launch [window addSubview:viewController.view]; CGRect rect = CGR...

Cancel out of UISearchBar when user taps on view

Does anyone know how to cancel (resign First Responder) out of a UISearchBar when you tap below the search text box and above the keyboard? Can anyone help post some code to handle this? Thanks ...

Rotating Images Like UIPicker VIew

HI, I am new to iPhone especially the Graphics part, I want to develop a Image Rotators just like the UIPickerView. but with my own custom design, It will look like something like the Casino Slot Machine, Can anybody guide me to some resources to do the Task in hand. ...

Cocos2D iPhone Effect

Hi all, trying to play around with the Cocos2d effects and created to methods to display and stop the Liquid action. My application however drops from 60fps down to 30fps when the effect is applied but the fps doesnt increase again when the scheduled stop action is called. I originally thought that while the action has been completed ...

How to implement target-action-mechanism for custom control?

I'm going to write my own custom control that is very different from UIButton. It's so much different that I decided to write it from scratch. So all I subclass is UIControl. When my control is touched up inside, then I want to fire a message in means of target-action. The user of that class may instantiate it and then add some targets ...

Strange colors when loading some textures with openGL for iphone.

I'm writting a 2d game in Iphone, which uses textures as sprites, I'm getting colored noise around some of the images I render ( but such noise never appears over the texture Itself, only in the transparent portion around It). The problem does not happen with the rest of my textures. This is the code I use to load textures: - (void)load...

iPhone 3.0 MapKit -- providing routing between points

Is it possible to have the MapKit connect defined points using the Google Maps API type routing connections. ...

How to Fetch Data From a WebService in iPhone?

I have to develop an application which includes following things, => Make a request to the Web Service through an iPhone... => fetch Data from web service... I have never used an web service to develop iPhone application. But i know what is web service. The example of web service is given below. a snapshot ...

what is applicationDelegate - iPhone

(WebService_1AppDelegate*)[[UIApplication sharedApplication] delegate] here - in above statement "WebService_1AppDelegate" is my application name. But i don't understand what does this statement mean. Please explain me - briefly this statement. I will be thankful. Thanks in advance for helping me. ...

Problem adding multiple annotations to map.

Ok, so I’m having this problem. What I want to do is manually add multiple annotations to a map. When I add just one annotation, it works flawlessly. The pin drops, you can click on it to see its callout, life is good. The problem comes when I want to add more than one. When I add the second, suddenly the pin’s aren’t coloured correctly...

Deleting contact from address book

Hi all i am using ABNewPersonViewController in my app.Using this controller i dont want to add contact to iPhone contacts book.When user clicks on save i just want to import values from the ABNewPersonViewController,not to save the addressbook of iPhone.I do no how to avoid adding this record to addressBook of iphone. ...

AJAX constantly look for server update? Javascript

I have a situation where a display on a webpage needs to be updated at random. I am wanting to do this in AJAX but am not sure how to do this other than to do a while(true) { ajaxFunction(); sleep(1) } Type thing. The problem with this is that the webpage needs to be updated very quickly on a change to the server, but the changes co...

Sending multiple parameter(hash table ie. NSDictionary) to a ruby on rails server

Hi, I have been trying to create an NSDictionary of the parameters in my iPhone application and want to send it across(through a POST HTTP request, there are some other parameters also in the request) to a ruby on rails server to be consumed by a ruby method which takes a hash table as arguments. Do I need to serialize the NSDictionary...

iPhone dev - cache values of tab bar view controllers

I have a root UIViewController subclass that has a UITabBar, (I'm not using UITabBarController) and 5 tab bar items for 5 view controllers. Each view controller has a UIPickerView. Only one view controller is ever instantiated at a time -- when a tab bar item is selected, the current one is removed, the new one is instantiated and added,...