uikit

Switch between OpenGL ES View and UIKit View controllers

Hello everyone, this is my question. I'm developing a game on iPhone with OpenGL ES. I began my development using the Xcode template OpenGL ES Application, with one EAGLView, etc. My menu view and game view use the same OGL view but now I want to add score ranking so I need a keyboard and a text field to write name, and some labels or ...

How to disable the highlight control state of a UIButton?

I've got a UIButton that, when selected, shouldn't change state when being touched. The default behaviour is for it to be in UIControlStateHighlighted while being touched, and this is making me angry. Suggestions? ...

Add integers from 5 UITextFields to a UILabel in Cocoa Touch

I'm trying to sum the integers from five UITextFields and post them to a UILabel. This is the code I have tried, but it doesn't work properly. The number that shows up in the label is not the sum of my textfields. I have also tried to post to a textfield instead of a label, with the same result. No errors or warnings when I build. int ...

Annimation in iphone inside for loop not working

Hello friends, I am currently developing an application in iphone, i want to animate some images on screen and for the same i have written this code for (int i = 1 ; i <= 5 ; i++) { imgview.image = [UIImage imageNamed: [NSString stringWithFormat:@"spleshScreen%d.png", 1]]; NSLog(@"i = %d" , i); [UIView beginAnimations:nil context:...

IPhone: Creating a Facebook like UI, Skinning Apps, Not following the AHIG

How do you design a UI like Facebook? Is it hard to implement a custom skin into a iphone app? How is it done? Do I need to follow apple's guideline? What if I don't want to? ...

How to add a button to the right hand side of a UITableView entry?

I am working on an in app purchase app. I would like fill a table view with a list of products, and put a BUY button on the right hand side of each entry. Does anyone have the UITableView - fu necessary to do this? Thanks! ...

Three20's UIKit extensions don't seem to be being "included" properly

So, we have a project using the Three20 Library from Facebook (http://github.com/facebook/three20), and we're trying to compile against the latest version (HEAD from Github). Previously it's worked fine, but something has now changed :) The error I'm getting is an unrecognized selector on TTTableViewController: [TTViewControllerSubCl...

UIImageView Animation Stopping in UITableView

I have a UIImageView inside of a UITableViewCell. The UIImageView animates. For some odd reason, when the cell goes out of view, the animation stops. The UIImageView is never initialized again and the UIImageView is never explicitly told to - (void)stopAnimating; so I'm not sure why it's stopping. Here's the interesting parts of my cell...

Animation issue when hiding iPhone toolbar

I have a toolbar in my RootViewController and I then hide the toolbar in a SubViewController using the following code: RootViewController - (void)viewDidLoad { ... [self.navigationController setToolbarHidden:FALSE animated:FALSE]; ... } - (void)viewDidAppear:(BOOL)animated { [self.navigationController setToolbarHidde...

UITextField issue

I have a navigation controller with a controller A having a UITextField. In another controller view B, I call a public method on the controller A to clear the text on the UITextField. In controller A, there's a delegate that is implemented: -(BOOL)textField: (UITextField *)textField shouldChangeCharactersInRange: (NSRange)range re...

Why is presentModalViewController hindering UITextField responses?

Any uitextfield I add to a view which is presented from another view controller with presentModalViewController:animated: does not respond to any touch events (like the keyboard doesnt display when the uitextfield is tapped) also if i use [textField becomeFirstResponder] to force the keyboard to display, the only time this works is in th...

Image Context produces artifacts when compositing UIImages.

I'm trying to overlay a custom semi-transparent image over a base image. The overlay image is stretchable and created like this: [[UIImage imageNamed:@"overlay.png"] stretchableImageWithLeftCapWidth:5.0 topCapHeight:5.0] Then I pass that off to a method that overlays it onto the background image for a button: - (void)overlayImage:(U...

UIKit: Animating a view while it's being moved by touchesMoved

So, I have a UIView subclass called MovableBlock. It overrides touchesBegan, touchesMoved, touchesEnded and touchesCancelled. The moving about part works just fine. When a MovableBlock is moved to the left side of the screen, it's 130px wide. When it's moved to the right side of the screen, it's 80px wide. I'd like to animate the transi...

UITableView won't accept pass through touches

I am trying to pass through touches from a custom UIView to a UITableView underneath (the UIView is directly on top of the UITableView). However, it does not seem to be working. In my custom UIView, I have tried all of the following (I'm using touchesMoved as an example but I've implemented this for all 4 touch methods) - (void)touche...

UITableViewController with a UIPickerView sliding up the screen

I have a UITableView where a cell needs to be filled in with a date by selecting it through a pickerview. Instead of pushing the pickerview onto the navigationController I would want to let it slide up halfway into the screen with the tableview still visible in the upper half of the screen. I've seen some apps doing this neat effect befo...

UIView border with fade or blur effect

Hi everyone! I'm looking for method to add gradually fading or maybe blured border (I don't exactly know how to name this effect) to arbitrary UIView. I don't need animated effect, I need static effect, for example I my UITableView border being partially transparent. I've made the example: http://i46.tinypic.com/14nz76f.png, so you can...

Library photos as source to UIImage

How to give images in photo library and camera as source to UIImage /* On button click i want to save image */ myImage = /*What i have to give here to take camera or library images*/ UIImageWriteToSavedPhotosAlbum(myImage, self, @selector(image:didFinishSavingWithError:contextInfo:), nil); ...

Is it possable to change the frame of a UIAlertView

I want to move a UIAlertView's frame because I am adding a UITextFied to it and when the keypad is hiding the Cancel and Ok buttons that are apart of my alertView ...

How to implement activitity indicator for maps on clicking the alert view?

I am new to iphone development.I am creating a map application.I want to display the activity indicator rotating when i click ok for the alert view "Do you want to load the current location". Since this alert is given default by ipod how can i give activity indicator for it? Please help me out.Please guide me.Thanks. ...

How to draw border around a UILabel?

Is there a way for UILabel to draw a border around itself? This is useful for me to debug the text placement and to see the placement and how big the label actually is. ...