iphone

UIButton outside of screen - won't work when layer moved

Hi, I have a UIButton, that's created outside of the screen on a UIView. By the touch of another button, the UIView scrolls up and the original button moves into the view. The problem is that the button is not touchable. I think Cocoa Touch optimizes buttons that are off screen, but how can i disable this behaviour? ...

MPMoviePlayerViewController HTTP Authentication Header

I using the following basic commands to view a movie stored on a server in the movie player: MPMoviePlayerViewController *mMoviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:getMovieURLRequest.URL]; [self presentModalViewController:mMoviePlayer animated:YES]; The problem is, I am getting a 401 authentication error w...

Event handler not being executed for UIButton

I have the following code. I am creating 3 buttons. They show up in my app. Event handler for the 1st button get's called when I click on it but NOT for the last 2. What am I doing wrong? THE FOLLOWING WORKS PROPERLY. UIButton *invite = [[UIButton alloc] initWithFrame:CGRectMake(x, 0, 40, 15)]; [invite setTitle:@"invite" ...

How to refresh UITableView after app comes becomes active again?

I would like my UITableView to reloadData once my app is active again, after a user exits the application. I know I need to implement (in my app delegate): - (void)applicationDidBecomeActive:(UIApplication *)application but im not sure how to reference the current UITableView? UPDATE: My UITableView is a separate controller. It is a...

multiple actions to one event on Interface Builder?

Hi guys, in my iphone app one event (touch up inside UIButton) is connected to three actions in different classes. The first action creates a game object, the second pushes the a new view controller and the third triggers an method in the pushed view controller. On interface builder I wired these actions to the event in the order ment...

Core Data - NSFetchRequest Problem

Hello, I have a problem with my NSFetchRequest, it doesn't seem to be fetching any data, code below: -(void)addAnnotations { NSFetchRequest *request = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"WayPoint" inManagedObjectContext:managedObjectContext]; [request se...

Upload file onto Server from the IPhone using ASIHTTPRequest

Hi I've been trying to upload a file (login.zip) using the ASIHTTPRequest libraries from the IPhone onto the inbuilt Apache Server in Mac OS X Snow Leopard. My code is: NSString *urlAddress = [[[NSString alloc] initWithString:self.uploadField.text]autorelease]; NSURL *url = [NSURL URLWithString:urlAddress]; ASIFormDataRequest *req...

detect that iPhone has been rotated using phonegap ( accelerometer)

Hi, Could someone please lead me in the right direction to finding out how to recognize that the iPhone has been rotated, using PhoneGap please? Thanks! C. ...

Changing the navigationbar color on the Edit screen of the More section

I am able to change the navbar color of the More navigationcontroller via: stTabBarController.moreNavigationController.navigationBar.tintColor = [UIColor colorWithRed:(102.0/255.0) green:(20.0/255.0) blue:(11.0/255.0) alpha:1]; but when I click the Edit button, the Configure screen appears and the navbar color is the default blue. How...

when i press a tool bar button in any view it should load my root view or main view

hi,i am new to this iphone.... i hav navigation controller ,itoolbar having the button in all view and when user gets taps this button it should load first view or main view ... how should i do it ...

app running on simulator but not in ipad..!!!

Hi guys, A'm stucked with a very strange problem.....really cant get how to come out with that..!! I am developing iPad application in which I am drawing a 3d cube with openGL programming for ipad....Everything is fine....I drawn the cube and also colored it with different colors....This all things I have tested on simulator, everythin...

Upgrade to Universal iPhone/iPad application not quite working

I've been playing around with upgrading from an iPhone app to a Universal application, using the handy Upgrade Current Target for iPad... menu option. Everything appears to succeed (although it's really hard to tell, Xcode just whispers success). So I started to change my MainWindow-iPad.xib file that was generated by the upgrade. And t...

is it possible to load the youtube player search page, populated with a string from a uibutton??

is it possible to load the youtube player search page, populated with a string from a uibutton?? Not looking to try and run it inside of a view or anything, just simply launch the search page Thanks ...

How to call a method that's declared in a ViewController from the AppDelegate

Novice question. I'm building an app and I want to call a method that I've declared in a ViewController - from the AppDelegate (on applicationDidBecomeActive). So basically, In TestAppDelegate.m I have... - (void)applicationDidBecomeActive:(UIApplication *)application { // I want to call a method called "dothisthing" that I'v...

iPhone iAd: "no qualified ads found for this request"

Hello, I have a problem with iAd. I have two apps: let's call them AAA and BBB. AAA is a new application which is "Waiting for upload" with iAd enabled. BBB is an existing application which I want to update and is "Waiting for upload" too, with iAd enabled. iAd in AAA works just fine. In BBB it shows this error in the console: Error Do...

Setup an app to detect OS ver. and iPhone or iPad

How can I detect whether my app is running on an iPhone or iPad, and what OS version it is running? Can I use pre-processor macros in a similar fashion to #if _OS4.0 or #if IPAD or something of the sort? Is this kosher, or should I just make separate builds for submission? ...

[iPhone] Disabling auto rotation for a UIView

Hi ! My application is composed of a toolbar and an AVCaptureVideoPreviewLayer in a background UIView. I'd like to see that toolbar rotate regarding the device orientation, so in my main ViewController, I implemented the function : - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return ...

Base SDK Missing

I just upgraded my xcode directly from the website i.e. I downloaded the new version of xcode which came with ios4 - yet when I finished installing everything including the SDK it now says base sdk missing?!? ...

Is it okay to subclass a view controller?

I'm a relative Objective-C noob, so please bear with me. The Apple documentation states that it is not a good idea to have two view controllers controlling a single view. I am building a game which takes place within a single view. I want to create objects that can add themselves to the main view (as sub-views). Is it okay to create ...

Hi guys, how can I executeFetchRequest second time if the first time CoreData was empty

Hi guys, I'm developing an application, which parses XML ant put data to CoreData. I want it to start quickly, so I load data from CoreData first, and after load and parse XML in other thread. The problem is that when the app starts first time CoreData is empty and I start to parse: NSFetchRequest *request = [[NSFetchRequest alloc] init...