uiapplication

Getting a reference to the UIApplication delegate

I'm writing my first iPhone application and I'm having trouble switching views. I have 2 views and a reference to each in the AppDelegate (an instance of UIApplicationDelegate). I create instances of both in the applicationDidFinishLaunching and immediately show the first view. This works fine. The problem is the reference to the o...

Propagating touches from UIApplication in a custom manner

Is it possible to propagate touches from shared application object to a custom view which has not actually received touches and somewhere at the back of the top view? Assume that I can't use my top view to track touches. ...

Call using Skype.app via openURL:

Hi! Does anybody know if it is possible open Skype.app to call phone via - (BOOL)openURL:(NSURL *)url UIApplication message? If it possible, what url a need pass to this message? Thanks ...

Youtube App on iPhone ignoring private videos

Hello there. I seem to have noticed an odd bug in the YouTube App with the iPhone. I have written a small program that fires off the YouTube app with a url like: http://www.youtube.com/watch?v=adsakasjda This video is a private video held on youtube. When the Youtube player launches I receive the message "YouTube not available". HOWEV...

[UIApplication sharedApplication] doesn't return windows

I need to add a view to window on iPhone, so i tried to do this: [[UIApplication sharedApplication] windows], but it seams that the array contains only one window. Can anyone tell me what i'm not doing write/what i need to do? ...

BlackBerry using UIApplication with MainScreen

Hello, I am trying to add a Browser Field onto my Main Screen. Currently, I have: public class BrowserFieldDemo extends UiApplication { private MainScreen _browserScreen; private BrowserField _bf2; private BrowserFieldConfig _bfConfig; public BrowserFieldDemo(final String url) { _browserScreen = new MainScreen(); _bfConfig = ...

How can I remove UIApplicationMain from an iPhone application?

I'm trying to port a game library over to the iPhone. Unlike SDL, this library doesn't take full control of your main() function, it's communicated with via quickly-returning functions from your own code. So, for example, obvious pseudocode: int main() { library_init(); // game init code here while(we_have_not_quit_the_game) { ...

How to get the details of apps installed in a device in my app

hi everyone, is there any way i can have an access to the name of applications that are installed in the current device in my app. is there any api's to get hold of this. thanks ...

How do I detect touches on UIStatusBar/iPhone

I'm trying to detect any touch on the iPhone's UIStatusBar but its not working. I've tried subclassing UIApplication and UIWindow to access it but still nothing ...

UIApplication openUrl not working with formatted NSString

I have the following code to open google maps: NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps?q=%@, Anchorage, AK",addressString]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]]; But it doesn't work and there is no error. It just doesn't open. ...

How can I launch app store from my application

Im trying to implement button which opens app store application from my app. I use this simple line of code, which opens safari but not app store application. [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://itunes.apple.com/sk/app/tweetie-2/id333903271?mt=8"]]; I dont know whats wrong, is the URL format corre...

iPhone generalPasteboard loses contents if application is closed by an -openURL: call

I have a method, that puts something on the pasteboard. This method is called one of two ways, one, as an IBAction from a button, the other from another method which afterwards closes the application by doing: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:"]]; The problem arises only when the application is not...

How can I pass a UIEvent to a UIScrollView

I am subclassing UIWindow and creating an implementation of sendEvent: as follows: - (void)sendEvent:(UIEvent *)event { [super sendEvent:event]; // Send event to UIScrollView here } How can I send the event to a UIScrollView. I tried calling the touchesBegan:, etc. messages, but that did not do anything. ...

UIView not handling touches

Hi All, I have set my status bar hidden in my Application. [application setStatusBarHidden:YES]; I have added an UIView on the window as a subview at 0,0,320,40. But I am not able to get touches on my View ? But if i am changing the 'Y' position like 0,30,320,40 its working fine. What is the problem ??? Thanks ...

Adding view on StatusBar in iPhone

Hi All, Is it possible to add a UIView on the staus bar of size (320 x 20) ? I dont't want to hide the status bar , i only want to add it on top of the status bar. Thanks ...

Proper use of UIApplicationMain

I have decided to load my views programmatically, so putting: int ret = UIApplicationMain(argc, argv, nil, nil); Would not work. I do have a ViewController and an AppDelegate, though. What would be the proper use of UIApplicationMain to use a ViewController and an AppDelegate. PS I am NOT using XCode or Interface Builder, I am develop...

Under what circumstances would [ [ UIApplication sharedApplication ] keyWindow ] return nil?

In some cases [[ UIApplication sharedApplication] keyWindow ] returns nil. On some devices it's happening pretty often but in general it's sporadic Anyone know the reasons it would return nil? ...

iPhone SDK - On Device Locked or On Device Unlocked and application shown

I need to find a way to detect when a device has been locked, or else a way to detect when the device has been unlocked, and sent straight to the app where it left off. Is there some method like: - (void)applicationDidBecomeActiveAfterLockScreen:(UIApplication *)application ...

how to detect idle user in iphone-sdk

In my Application I want to call Logout Function if user is idle for certain amount of time how to accomplish this answer doesn't work for me http://stackoverflow.com/questions/273450/iphone-detecting-user-inactivity-idle-time-since-last-screen-touch if i subclass my app delegate class from UIApplication and implement - (void)sendE...

Detect Any touch Event across Application in iphone

My objective is to detect any touch event inside My Application on any view... (i.e Inside my application any touch event in anywhere should be detected...) I have tried it by subclassing my appDelegate Class with UIApplication but it is giving me error http://stackoverflow.com/questions/3101345/how-to-detect-idle-user-in-iphone-sdk h...