when my tap gesture fires I need to send an additional argument along with it but I must be doing something really silly, what am I doing wrong here:
Here is my gesture being created and added:
UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTapGesture:itemSKU:)];
tapGestu...
I'm displaying a modal view using the UIModalPresentationFormSheet presentation style on my iPad. Everything is working as expected, but when I click "Save" in the view and load the dismissModalViewControllerAnimated method, the view slides down rather than up (as in Apple's own applications, e.g. when sending an email in Mail.app). At t...
I'm not talking about binary size. I'm talking about the amount of data that can be written to disk during execution inside of certain directories such as Cache or Documents.
I can't find an easy answer in the XCode documentation, which is to say I can find none at all.
I know there is a limit for the cache directory in the form of "oh...
Hi,
I created a view controller with a png image and a long jpg background (it's width is twice the width of the iPad - 2048px). moving the png image makes the background image to move to the left in a seamless manner. see this image for an illustrative reference:
image
When playing with it on the iPad, it crashes anytime I move it mo...
I have created a UIScrollView (canvas.scrollview) and have a custom UIView (canvas) inside it.
A normal configuration for starting up is something like this:
CGRect cs2 = CGRectMake(0, 0, 4000, 4000);
CGPoint screen = {[UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height};
self.canvas.frame = cs2; //canv...
It seems that using MBProgressHUD is causing my application to crash. Without the HUD code, the following runs just fine, but with it, it crashes:
{
...
HUD = [[MBProgressHUD alloc] initWithView:self.view];
// Add HUD to screen
[self.view addSubview:HUD];
// Register for HUD callbacks so we can remove it from the...
As i know
moviePlayer.duration
can get the duration of a movie, i know
playableDuration,
initialPlaybackTime,endPlaybackTime,
but i want to get the current playback time of the moviePlayer .And if there has this method,which Notification should be sent to where,thank you!
...
I have an application that supports iOS 2.x.
I am about to revamp this app, but I need to make it at least 3.x.
What will happen to old customers? I mean, suppose a guy is using an old 2.x device and I release a 3.x app. Will this guy receive an alert on his iphone that a update is available?
I know that iTunes is blind and allows one...
I have an application that is supporting iOS 2.0.
The Base SDK is set to iPhone Device 4 and
the iPhone OS Deployment Target is set to iPhone OS 2.0
My intention is to build it compatible with iPhone 3/3GS and 4
and iPod touch 2nd generation
This settings I have compile file, but when I upload it to iTunes Connect I see this error
T...
Hi All,
I have some imageview objects on a UIViewController.The problem is that i want to drag one at a time buti am unable to disable the touch event on the remaining,please guide me if any one have any idea to do so.
Thanx
...
With the iPad we got applications with the product name extension "HD" to distinguish them from their low resolution iPhone counterparts. But, now with iPhone 4 also being an "HD" device, how to correctly name your apps?
Basically I'd like to publish a game in three flavors: iPad, iPhone 4, and all other iPhone/iPod devices.
Any though...
Error I get from console:
2010-07-02 12:08:17.179
myApp[15509:6507] Cannot find data
converter callback for uti public.data
2010-07-02 12:08:17.182
myApp[15509:6507] Failed to generate
preview
iPhone simulator work fine without any problem but iPad doesn't. That's strange.
Thanks for helping me.
Tung Do
...
Is there any way to programatically show the root view controller in portrait mode responding to a user action?
in my app the root view controller can be updated responding to some user interaction with the detail controller and i'd like to pop it over when that happens.
Thanks!
...
I hace been looking around on how to make a swipe action with javascript so that it loads $next (the next page). Any ideas? Thanks.
...
I want to apply an rotation to an uiimageview for shapes like "U" and "T" using compund objects and box2D, because "U" shapes are concave polygons so i can't do it using b2polygondef only.
Here it is the method to make an "u" shape box when the user click on the screen
// map from the world to the screen and screen to the world
#define...
Our app can deal with say Pages files as an example and needs to both hand off files to other applications as well as receive files from other applications.
So we edit the plist CFBundleDocumentTypes to say that we can deal with Pages files. ('Default') mode.
When the user wants to send a .pages file onto another application (Likely t...
So I'm currently using UI_USER_INTERFACE_IDIOM in conjunction with [[UIDevice currentDevice] model] to check if I'm on an iPhone, iPod or iPad. What I've found is that in the iPad simulator 3.2, UI_USER_INTERFACE_IDIOM still evaluates to UIUserInterfaceIdiomPhone (iPhone).
I'm wondering if this has something to do with my Targeted Devi...
I have an app where I've a UINavigationController in a popover that displays some information. The root item contains a button showing a related Contact. I'd like to press the contact button and display the ABPeoplePickerNavigationController. I've got this code to do it:
ABPeoplePickerNavigationController *contactController = [[ABPeople...
I searched long and hard in an effort to figure this out. It took about 4-5 hours before I finally managed to reach a solution. I will be answering my own question in an effort to provide support to anyone who comes to the same problem.
So, I created the application Critical Mass Typer. It is a typing game that utilizes the keyboard as ...
I have a NSURLCache that simply logs cachedResponseForRequest and storeCachedResponse calls.
It seems that UIWebView will call cachedResponseForRequest for every request, but storeCachedResponse will only be called for the top-level page, i.e. not for any css/js/etc. specified in the html.
Is there any reason why this might be (not) h...