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...
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 ...
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...
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.
...
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?
...
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...
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 ...
-(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...
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...
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?
...
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
...
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.
...
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
...
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...
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...
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...
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...
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?
...
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
...
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...