cocoa-touch

Grouped table view empty section

Hi, I've read every answer available for this question that I could find, including this answer here on SO: link text The best known example of what I am trying to accomplish would probably look like the detail screen of the Contacts app. Some contacts have a phone number and email, others have multiple phone numbers but no email etc. ...

How to detect touch in triangle area

For my application, i need to divide diagonally the screen of my iphone in 4 parts and detect which of the part was touched. I am very confused because my areas are triangles and not squares and I can't find a solution to detect which of the triangle was touched... I get the touched Point with method touchesBegan, and there I'm stuck.....

callbacks via objective-c selectors

I have a "BSjax" class that I wrote that lets me make async calls to our server to get json result sets, etc using the ASIHTTPRequest class. I set it up so that the BSjax class parses my server's json response, then passes control back to the calling view controller via this call: [[self delegate] performSelectorOnMainThread:@selector(...

how to create a rounded transparent rectangle by using cocoa touch ?

Hi, I need to create a rounded rectangular box in which there will be 6 buttons in iPhone application. And the rectangular box is transparent. Each button have an image and text. And they are also transparent. ( Here transparent means we can see the background image of the box. Sorry for my vocabulary.) I could not get how to start it. ...

Implementing tracing gestures on iPhone

I'd like to create an iPhone app that supports tracing of arbitrary shapes using your finger (with accuracy detection). I have seen references to an Apple sample app called "GestureMatch" that supposedly implemented exactly that, but it was removed from the SDK at some point and I cannot find the source anywhere via Google. Does anyone...

QTMovie Player Left and right speaker sound.

hey all I am using two QTMovie object for playing a two mp3 file. I want one mp3 file sound came from left speaker and another mp3 file sound come from in right speaker. Also i want how to manage left and right speaker sound. Please suggest,how can I do this. Thanks Mandeep ...

Interface Builder: Resize View From NIB

I have a custom UIViewController and a corresponding view in a nib file. The view is added to the UIWindow directly. [window addSubview:customViewController.view]; Sizes of the window and the view are default (480x320 and 460x320 correspondingly). When I create CustomViewController inside the nib file and check "Resize View From NIB"...

UIgestureRecognizer in a view inside a UIScrollView

Has anyone managed to get a UIGestureRecognizer to work on a UIView that is a subview of a UIScrollView? My callbacks never seems to get called. As a simple example, I want to have a paging scrollview and on the third page listen for a tap with a UITapGestureRecognizer. However I can not get it to work. Here's how I would do it: self....

Dismissing the keyboard with UISearchBar, without resigning first responder.

Hey, I was working on a navigation-based app on iPhone similar to the contacts app. When you input something in the search bar, and scroll in the table (in the contacts app), the keyboard goes away. I don't think it resigns first responder though, because when I try and do that in -(void)scrollViewDidScroll:(UIScrollView *)scrollView, ...

publishing iPhone apps without owning a website and tax details?

Hi All, I am iPhone developer from india and want to publish my iPhone apps to app store using Apple's "Indivisual Developer" program. But the catch is i dont own a website, can i publish an iPhone app without specifing a support website at iTunes connect? Is it must to specify a website there? Also, as i am non US resident. What shou...

How to simulate the delete key on UITextField?

Hi, I'm creating an application on the iPad. I create a custom keyboard using UITextField's inputView property. To insert text at the cursor position, I use the copy & paste method (http://dev.ragfield.com/2009/09/insert-text-at-current-cursor-location.html), which works fine. Now, I want to create the delete key. The code that I'm usin...

How can I add two UIBarButtonItems to UINavigationItem?

I want two rightBarButtonItem's on my UINavigationBar. How can I accomplish this? ...

Value from UISlider method?

Can anyone point me in the right direction regarding sliders, the version below was my first attempt (the range is 0.0 - 100.0) The results I get are not right. // Version 1.0 -(IBAction)sliderMoved:(id)sender { NSLog(@"SliderValue ... %d",(int)[sender value]); } // OUTPUT: // [1845:207] SliderMoved ... -1.991753 // [1845:207] Slid...

Rotation event + loading other view

Hi everybody I'm new to iphone programming so I've got a little question. Is there a way to trigger a 'rotationevent' when turning the device to left or right? I've tried a couple like orientationChanged: and willRotateToInterfaceOrientation:. I get no results when turning the device. Which actions do you have to take to catch an rot...

iPhone 3.1.3: All my UIButtons and UITableRowViews are now gray

Not sure how this happened, but all of the UITableRowViews and roundrect-style UIButtons in my app—spanning a dozen or so views—are now all gray instead of white. Unfortunately, I have no idea how this happened. (In fact, I had no idea it was possible to do this.) Explicitly setting the button's or tableRowView's background color to whi...

Converting a CGRect of a object in a subview in UITableViewCell in UITable to CGRect with respect to self.view

Hey, I want to converte a CGRect "aRect" of a object in a subview in UITableViewCell in UITable to CGRect with respect to self.view. The problem is that aRect is with respect to the subview in the table cell. But i want to make it so that it is with respect to self.view What i tried is this rect = [self.view convertRect:aRect.frame to...

What could cause this difference in behaviour from iphone OS3.0 to iOS4.0?

I am getting a strange EXC_BAD_ACCESS error when running my app on iOS4. The app has been pretty solid on OS3.x for some time - not even seeing crash logs in this area of the code (or many at all) in the wild. I've tracked the error down to this code: main class: - (void) sendPost:(PostRequest*)request { NSAutoreleasePool *pool = ...

UINavigationController inside tabbar loading a child root view

Hi guys, Firstly i'll preface by saying that i am a complete Cocoa touch/objective c noob (.Net dev having a dabble) I have searched on Google as well as here but cannot seem to find an easy solution. I have a UItabbarcontroller view with a UINavigationController inside its first tab I have the root view for this UINavigationControll...

How can I tell when regionChange event on MKMapView is programatic or user-drag of map?

I have an MKMapView with a registered delegate so I can listen for region change events (specifically, regionDidChangeAnimated). I'm looking for a robust way of telling if a region change event was the result of a user dragging the map or from a programatic setRegion: request. My goal is to have an app that auto-centers the map based o...

Prevent subview from scrolling in a UIScrollView

I have a UIScrollView subclass with a certain subview I'd like to prevent from scrolling (while all the other subviews scroll as normal). The closest example to this I can think of is UITableView's "index strip" on the right side (look in the Contacts app to see an example). I am guessing this is a subview of the table (scrollview) but ...