cocoa-touch

Modal View Does Not Appear in Center in Horizontal Orientation

I have a UIPresentationFormSheet (contains a textview) that appears in the center of the screen when I am in vertical orientation. When I dismiss the modal view, it disappears fine. When I am in horizontal orientation my modal view does not appear in the center of the screen. I have to dismiss my keyboard for the modal view to appear in...

How to display complex object in debugger?

I'd like to display the contents of the property myarray, from the following singleton: [Session sharedManager].myarray I've tried these: po [Session sharedManager]. myarray po [[Session sharedManager] myarray] but always get this error: A syntax error near end of expression. Any suggestions? --- EDIT --- I'm working with SDK...

UITextView inside UIScrollView is not First Responder

I have a UITextView on a View that becomes the first responder. When I embed the UITextView inside of a UIScrollView in Interface Builder the UITextView is no longer the first responder. I am not sure what has changed? I would like the UITextView to become the first responder. - (void)viewDidLoad { [super viewDidLoad]; [scroll...

How to make modal view scrollable?

I have a modal view with a textview and a button. When the keyboard is displayed it covers up some of my UI elements. I'd like my modal to be scrollable so that it can be viewed while the keyboard is displayed. How can I do this? ...

UIPanGestureRecognizer starting point is off

I have a UIView that has a UIPanGestureRecognizer attached to it the gesture is working fine except that the starting point is not where the pan first started it is usually off by 5 to 15 pixels in both the x and y coordinates.Unfortunately the variance is not consistent and seems to be related to the speed at which the panning motion ta...

Core Foundation equivalents for NSURLRequest and NSURLConnection

I'm aware that NSUrl is bridged to CFUrl. What are the Core Foundation equivalents for NSURLRequest and NSURLConnection so I can do something with a CFUrl object using pure C? ...

UItextView in UITableview, autocorrection bubble not visible

Hello! I have a UITableView with custom cells. The cells containing one UITextView each and the cell is resizing during user type text in the TextView. My problem is when user is on first row in a TextView autocorrection bubbles wont be visible in the current cell. Is there any workaround or can someone point me to another direction...

How to pause the application when quit the home button in iphone

Hellow All, I am developing one game application for iphone.Here whenever user get the call or SMS or he quit the appication ,my application should be in pause state .so,whenever he loads the application again,it should go to previous state where it stopped. Are there any built-in methods for doing this Thanks all ...

Load different views depending on the category of data on tap of tableview cell iPhone sdk

Hi all, In my aplication, I want a tableview with different cell structure depending upon the category of data that's getting loaded in it [I have different categories like video, editorial etc with different structure of data like video has a single label, editorial has 3 labels etc]. I can load different nib files based on the data co...

Why can't I use "List" as class name of a subclass of UITableViewController?

Why can't I use "List" as class name of a subclass of UITableViewController? ...

How to track audio decibel values from UIImage Picker Controller?

hi, i am developing iphone application which included UIImagePickerController Source type is UIImagePickerControllerSourceTypeCamera. In this how i can get audio values from mice as-well as i have to show it and should have option to on- off. So please help me to overcome this issue. i searched completely from UIImagePickerController do...

How to avoid superclass methods getting overridden by sub class in objective - c

Like in java: A final class cannot be subclassed. This is done for reasons of security and efficiency. Accordingly, many of the Java standard library classes are final, for example java.lang.System and java.lang.String. All methods in a final class are implicitly final. How can I achieve this behavior in objective-c? ...

Is it possible to create different .xib files using a single class iphone sdk

Hi all, In my application,I need to load different .xib in different tableView cells depending upon the category of data which I'm getting from parser. I wanted to ask that is it possible to create different .xibs belonging to same class as it'll reduce the load as I have almost 13 categories so 13 .xib files. Thanks in advance. ...

UIPicker reloading content

Hi i have a problem with UIPicker, im keeping my Picker in Navigation controller. i want the Picker content to reload whenever the navigation controller push the PickerView. but the pickerview content maintaining same state in all navigation.. how to change this? ...

How can I add Copperplate Gothic Bold font in my iPhone program ?

Hi, I need to display some text in cocos2d layer. I added UITextView to it. I added the text in the text View. But, for setting the font by ( UIFont class), I could not do it. I saw the list of supported fonts for iPhone, In that list Copperplate Gothic Bold is not there. I downloaded it from net. It is working good for CCLabel and CCF...

performSelector:withObject:afterDelay: not working from scrollViewDidZoom

Hi all, I feel like I should know this but I've been stumped for hours now and I've run out of ideas. The theory is simple, the user manipulates the zoom and positioning in a scrollview using a pinch. If they hold that pinch for a short period of time then the scrollview records the zoom level and content offsets. So I thought I'd sta...

NavigationController not pushing view

I'm accessing a navigation controller from the app delegate and trying to push another view: [appDelegate.myNavigationController pushViewController:self.detailView animated:YES]; but nothing is happening. The above is in myTableView. The app is tabbar based. I added a NavigationController object under the TabbarController object ...

How do you embed the camera display in a view on the iPhone?

How do you show the live camera feed in a subview within our main interface on the iPhone? ...

Improving the efficiency of multiple concurrent Core Animation animations

I have a view in my app that is very similar to the month view in the built-in Calendar app. There's a subview that holds the individual cells (a custom UIView subclass that draws text into its layer), and when the user navigates to the next "month", I create the new cells and slide the view to show them. When the animation stops, I remo...

Making classes work together in obj-C

I'm writing a program for iPhone that will first let the user take a photo, then will dynamically retrieve a colour of the place where the user taps on the image, and draw a rectangle of that colour. I have two relevant classes for this: AppViewController and AppView. The former contains all the UI elements and IBActions, the latter the ...