iphone

Overpersistent files on the iPad

I copy some text files from a server to the NSDocumentDirectory on the iPad. One of the files has a .sql extension. They all store correctly and everything works OK, except there's one puzzling thing: When I delete the application from the iPad (make it wiggle and hit the X), all the existing files get deleted (as I'd expect) except fo...

How to open view with each image on openFlow api, in the ipad?

i follow the instruction of this tutorial how to add coverflow effect on your iphone app openflow i used the last version of openFlow(http://github.com/tupps/OpenFlow) and works great, but What I need is make each image as button or menu and when i click it, this will open another view, but so far I can't do that . Any clues or tip...

Live iPhone app not showing ANY adWhirl ads

Hi, I implemented adWhirl ads in my iPhone app. During testing ads showed great from all networks, including house ads. I released the app, I have active users (because they submit high scores) But... No income showing in network reports and when I use the app, no ads show. Did I forget to flip a switch somewhere? Thanks! Hanaan ...

How to trigger a WiFi connection on iPhone SDK 4.1

Sometimes the iOS device will not connect to the available WiFi automatically, but it will if Safari is launched and try to browse to any site (or go to Settings->Wi-Fi and select the desired network). This is probably for battery savings reasons. How to trigger this from your app? ...

iphone - Navigating between UITextFields ???

I have seen a lot of iphone apps which provide an easy to use navigation controll for text fields, which contains next previous and done. What is the technique for this? any sample code? they also scroll the screen until the selected textField is placed on top of the keyboard, how do they do that? ...

how to retrieve the file size of a video using AssetLibrary in objective c

Hi, I would like to know how to retrieve the file size of a video using AssetLibrary? Can anyone point me in the right direction? or possible some code snippet? ...

Xcode suddenly very slow

My Xcode speed has come down to a crawl. I have no idea why. CPU activity is very low on both cores, gobs of memory. It's almost as if it's waiting for something but I have no idea what. I have disconnected all USB and FireWire devices but it helped only a little bit. Any ideas? ...

UIView subclass creating its own UIButtons

Hi all, I have subclassed UIView so I can draw some lines in it. In this UIView are a whole bunch of buttons which I decided to create as a method that drawRect calls after the lines are drawn. It works but sometimes only part of the button renders. If i remove the button creation and instead add the UIButton in the subclassed UIViews p...

presentModalViewController does not work if called too early.

If I dismiss the the modal VC and present it (or another one) again in less than a certain amount of time, it does not appear. Am I missing something? ...

ReCall NSArray in RootViewController

I use original method XML data can show in rootviewcontroller TableView. When i use New Procedure it show the table only no data. How can i show the data in New Method? Original Method appDelegate.m (setup XML & load the data) rootviewController.m (use nsarray & load the data into table view) New Method appDelegate.m (setup XML &...

IPhone SDK : Basic simple Question how to open a Webview when touch a button in Alert view ?

Hi all ,I import WebView.h to my project,and it only has a simple IBOutlet UIWebView *myWebView ; How to Open a WebView when I press the button in the alert view ? here is how I define alert view button response - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ if ([alertView tag]==0) { ...

iPhone Build Error (Entitlements)

I'm getting this error when trying to build: The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile. (0xE8008016). This is not my first time building apps. This will be my sixth app, so this thing is tripping. I'm making an AppStore distribution build, s...

insertNewObjectForEntityForName returns wrong type

Hello everyone, I've been pulling my hair for the last few hours trying to figure out why insertNewObjectForEntityForName is returning NSManagedObject even though I'm trying to insert an entity of my own type. Things I have checked a thousand times: Class name is set to the correct value in the diagram designer Entity has many-to-man...

Detect iPhone device capabilities for Core Location

I have a core location app that I'm writing leveraging the startMonitoringSignificantLocationChanges method to generate updates when appropriate but this does not work on older devices such as iPhone 3g. I would like for the core location functionality to still work while the device is open, so I thought I could use a selector test to...

Code signing issue: Developer Certificate expired, help?

The last time I deployed on a device was last week. Since that time, I've been tweaking on the simulator. My developer certificate expired on Oct 11th. I tried to deploy on my iPhone today and got some code sign errors. I checked it out and discovered my developer certificate expired, so I went ahead and renewed it on the Provisionin...

destroyFramebuffer method in an openGL app.

in my OpenGL type of iphone app, I have this method below in the GLView implementation. i noticed everytime i started up the app during development that the last frame that was present when i shut the app down the last time, would draw first before the app started its animation... but when i commented out this method, the app would...

Local Notification

When Notification receive os show an alert , is it possible to play sound instead of this alert? and when notification receive os add a red circle on the top of app's icon , is it possible to disable it(means not show this red circle)? ...

2d collision between line and a point

Im trying to understanding collision detection in 2d world. I recently got this tutorials http://www.gotoandplay.it/_articles/2003/12/bezierCollision.php. I have question which puzzled me a lot - on the flash demo ball is dropping without responding if i try to swap the starting and end point. Can someone explain me , how the simulation...

Edit my signature in PDF file in my iPad application

In my iPad application I want to add signature in my pdf file. I already do perform following steps: Open pdf in UIView (zooming is not implemented yet). Add one transparent subview (UIImageView) and draw signature on that. Save all screen using UIGraphicsGetImageFromCurrentImageContext() as a image. Convert and save the image as a ...

The executable was signed with invalid entitlements (iPhone build)

Ok I'm no rookie to this stuff. I know what I'm doing, so please dont take me through the basics. I updated Xcode to the newest version the other day, and now every new project and saved projects from the past that HAVE succesfully been built using its own distribution certificate are no longer succeeding with the following error: The e...