iphone

Show a UIPopoverController from a detail disclosure button in a UITableViewCell.

I am creating an application for the iPad, and I want to show an UIPopoverController with an arrow pointing to the detail disclosure button for the row it belongs to. I want to do this in the tableView:accessoryButtonTappedForRowWithIndexPath: method. Currently I have this, with a dummy CGRect: - (void)tableView:(UITableView *)tableView...

Universal app wont launch in iPad mode?

For some reason my universal app suddenly does not want to launch in fullscreen iPad mode, but it used to do so. I am really not sure what happened. The iPad target is set to iPhone Devide 3.2 and the iPhone OS deployment target is iPhone OS 3.2 as well. I have set the Targetted device family to iPad. Yet, the app keep launching into ...

Get UIViewController associated with a UITabBarItem

I have a UITabBarController with a bunch of tabs. When a new tab is selected, I want to be able to access the UIViewController associated with that tab. The -(void)tabBar:(UITabBar*)tabBar didSelectItem:(UITabBarItem*)item method on UITabBarDelegate gives me access only to the UITabBarItem. Any suggestions on how go from this to the UI...

Implement UIScrollView which holds an image

I would like to Implement a UIScrollView which should hold an image which is the same width as the screen, but a lot larger in height. DO I add a UIImageView to the scrollView or how is this done? Thanks in advance. ...

Restart CoreAnimation after view appears

I have a custom view with additional layers and a simple endless animation (using core animation). The view is a subclass of UITableViewCell and therefore doesn't have it's own view controller. The animation gets stopped whenever the view disappears, which is fine. But how do I restart the animation when the view reappears? ...

MPMoviePlayerViewController Finished the App returns Landscape

Hey Guys, I have a MPMoviePlayerViewController, while the video plays fine if the video is in landscape, and when it finished the app turns to landscape. After video finished I want the App to remain portrait. MPMoviePlayerViewController *moviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:movieURL]; //[movieP...

In my pedometer application, why doesn't my NSTimer stop when I want it to?

Please help me, friends. I have finished making a steps counter. My problem now is that my timer starts with the accelerometer, but it doesn't stop when the accelerometer stops.(Pedometer is an application where the user can count his\her steps. With this information, the user can count his total calories consumed, and the total elapsed ...

how to execute multiple animations in a row?

-(ibaction)sometouched:(id)sender { [UIView beginAnimations:@"first one" context:nil]; [UIView setAnimationDuration:1.0]; [myview setFrame:CGRectMake(0,y,width.height.); [UIView commitAnimations]; [UIView beginAnimations:@"second one" context:nil]; [UIView setAnimationDuration:1.0]; [myview setFrame:CGRectMak...

Check collision speed in Chipmunk Physics

Hello. I'm using Chipmunk 5 for iPhone, with Cocos2D. Upon collision between two specific objects I'd like to run a method which checks the velocity of that collision, if it's over x it runs one set of code, if it's under x it runs another. Now, I understand the basics but I can't work out the code to run a method on collision detecti...

Draw with newcolor instand of old color

Hi,I modify the sample code called GLPaint.And I want to draw with new color replace the old color,so we just see the last paint color.The sample code is mix the colors which isn't I want. What can I do? ...

Can you have two Navigation Controllers in subviews of a Main UIViewController?

The following image explains what I'm trying to do: http://img337.imageshack.us/img337/1475/multinav.png This is for an iPad app. Is it possible? And if so, can someone post the skeleton code to do it? Thanks in advance ...

iPhone, check for existence of constant

How can you check if a constant is set at runtime? For instance, in iOS 4, UIApplicationDidEnterBackgroundNotification is available, but when running on iOS 3 it will through an error if you try to use it. ...

iphone/ipad html search

The iphone app im writing displays an html page, i would like to add a search feature where the user can search for instances for the keyword and highlight them (like in firefox using ctrl+F) what's the best way to do this? in objective-c? would this be even possible with javascript? Please point me to the right direction ...

Store enums in an NSArray?

Hi, I'm new to Objective-C, but experienced in C++ and C. I want to store some enum constants in an array. In C++ I would do something like this: enum color {RED, BLUE, YELLOW, GREEN}; vector<color> supportedColors; supportedColors.push_back(RED); supportedColors.push_back(GREEN); But the NSArray will only store object pointers (id...

Building a service for my website that has some foursquare features.

Hi everyone, I am interested in extending my website to provide a service which involves users "check in" in my university's campus. Since Location Based Services (LBS) is pretty new, and there are not much literature around that could provide relevant interests to this matter, I have the following questions to ask: First, I know that I...

How to change iPhone App name 100%!

Can't seem change the name of my iPhone app 100%. I followed multiple threads and performed the outlined methods below, but the old name keeps popping back up in Console. I'm concerned that on some deeper level the app's name has not really been changed 100%. My concern is with the fact that I've made a "Lite" version by starting wit...

Getting exposure values from camera on iPhone OS 4.0

Exposure values from camera can be acquired when you take picture (without saving it to SavedPhotos). A light meter application on iPhone does this, probably by using some private API. That application does it on iPhone 3GS only, so I guess it may be somehow related to EXIF data which is populated with this information when the image i...

how to skin an iPad app

im new to ipad/iphone development. what are some ways to skin an ipad app? (eg: the notes app that came with the iPad) Is there any tutorials or code samples? ...

How to figure out "Color of a specific pixel" in an image?

I have an image which is inside an Image View.I want to find color of a specific pixel (say x=10,y=20)inside the image.A working code would really help me out.Thanks in advance ...

MKMapView broken in 3.2.3 / OS4 - Can't set region

In the last version of Xcode, set region worked fine, now in 3.2.3 it doesn't snap to your specified region? After View did load... [mapView setMapType:MKMapTypeHybrid]; [mapView setZoomEnabled:YES]; [mapView setScrollEnabled:YES]; MKCoordinateRegion region = { {0.0, 0.0 }, { 0.0, 0.0 } }; region.center.latitude = 41.902245099708...