iphone

iPhone App works in simulator but not on device (NSUserDefaults)

Hi! I have some code, which works perfect in the simulator, but i cant run it on a real iPhone device and i dont get the reason: - (void)loadView { self.title = @"Optionen"; [super loadView]; } - (void)viewDidLoad { [super viewDidLoad]; NSMutableArray *strArray = [NSMutableArray new]; NSUserDefaults *prefs = [NSUserDefaults ...

iAd Not Displaying After the didFailToReceiveAdWithError is fired

I am working on a Cocos2d iPhone application and trying to display the ads. At this point the ads are displayed when there is no error. When there is an error then didFailToReceiveAdWithError is fired. After that the iAd framework tries to get the ads by constantly trying. At some point bannerViewDidLoadAd is triggered but now it display...

Problem showing some controls that are part of an UIView

Hi all, In my app I have a custom UIView subclass (let's call it MyView) which contains three buttons and two labels. I add this view to a view controller which also has a table view (I add the instance of MyView at the bottom). Because of the business logic rules, the labels and one button out of three are hidden in the beginning. So ...

Can a managed object with unmanaged properties fault?

The Core Data documentation says that objects may fault to save memory if needed. What happens if you have an object that has a property that is not a managed property? For example, say you have a Department class, that is a subclass of NSManagedObject. It has a location iVar + accessors. The location property is not an attribute of Dep...

How to launch links in UIWebView with the Safari app?

I have an small embedded UIWebView for my about-section of the app. When the user taps a link in there, the link opens in that small embedded UIWebView which of course has no navigation controls and isn't full-screen. I don't like that. Can I force it to open links with Safari instead? ...

Is there a way to re-trigger asking the user if the iPhone can use their current location?

For some reason, my iPhone app doesn't ask the user for permission to use their current location when the app is installed from the App Store. Because of this, my app's location-based functionality doesn't work. I'd like to catch the error and re-trigger the functionality that asks the user for permission to use their current location....

Access the a built-in camera from Safari installed on an iPhone, iPad, or iPod Touch?

Is there a genuine way to access the a built-in camera from Safari intalled on an iPhone, iPad, or iPod Touch? By genuine I mean no hack, no workaround, no extra app to install. There is no flash capability installed on the web browser for those devices and I need to enable my users to, with their permission, be able to use the camera...

Switching between Bluetooth headsets during Audio Session in iOS?

Assuming a user has multiple bluetooth headsets attached, and an audio session is running (playing something through one of the headsets). Is there a way to get the list of attached bluetooth headsets (maybe using the External Accessory Framework?) and switch the audio session to the other headset? ...

Detecting and Creating UIScreens for TVOut on older devices?

For older devices (i.e. anything not an iPhone 4 and iPad) running iOS4, [UIScreens screens] will only return a single screen even when a TV-Out is plugged in. Is there any way to detect that an external screen is connected and somehow create a window for that display? ...

iphone - how to clear SQLite database?

I have an iphone app that is using a SQLite database, everything works and I can save the database to file and load it back up when the app is reloaded. But the problem i'm having is that I don't know how I can clear the database and start over from scratch. I have tried deleting the database file, doing so will cause the app to start a...

iPhone Image Resolution

I am creating an app that has images in a picker view, but I have noticed that these images appear pixelated. Currently, I have the resolution set at 72 pixels/inch. I have increased it to 300 pixels/inch, but have not noticed a change. Has anyone run into the issue? ...

iPhone App Creating View More Apps Link

I am hyperlinking in my application to my page on itunes where users can see my other apps. For some reason the following url results in too many redirects error on Safari. http://itunes.apple.com/us/artist/myusername/id22222 ...

Directory 'X' following -L not found

I have two warnings for my project in xcode, both don't stop the app running but I want to make sure I build without any warnings. I recently removed Flurry from my app, and libsimulate and I can't get these messages to stop appearing despite spending many hours searching for answers on StackOverflow and Google. I know it must be a sim...

Entities missing from Core Data sets when using pre-populated data files?

Hi all, My application has two parts; a data importer part that takes a text file and creates Core Data objects from the data and then "saves" the data file (in this case, nutritional information for different foods). The data file is then used by the app. The issue I'm running into is when I go to list the contents of a relationship,...

How i can attach touch event to Uiwindow or UIview

I want simple flip pages on iphone ...

iPhone sqlite sync with sqlite on dekstop/mac

Can I sync the local sqlite database on desktop/mac with sqlite database on iPhone for application by directly connecting the phone to my mac/pc? ...

Limiting the scrollable area in UIScrollView

I have a UIScrollView that is scrolling a fairly large UIView. At certain times I want to limit the area the user can scroll around in. For example, I may only want to allow them to view the bottom quarter of the view. I am able to limit the area by overriding scrollViewDidScroll and then calling setContentOffset if the view has scrol...

iPhone fullscreen frame animation with easing

I need to show a (near fullscreen) object in 360 degree rotation within my iPhone app. The rotation animation has already been rendered and contains 180 frames at 960x640 (Retina display). Interaction required will include... - swipe left/right to rotate (animate) - clickable areas on each image. Can anyone suggest the best way to an...

UIView Animaton Resets to beginning

I'm attempting to run an animation so that the scrollview's contentoffset gets continually scrolling down. However, after each repeat, it will animate from the original position and it is not progressing. [UIView beginAnimations:nil context:NULL]; [UIView setAnimationBeginsFromCurrentState: YES]; [UIView setAnimationDuration:1.0]; [UIV...

App is crashing when deleting from UITableView due to self referencing connection.

Hi, I'm brand new to iPhone development (and first question posted here) and am sort of stuck with Core Data and Table Views. In short, my app is crashing when I delete a row from my UITableView due to NSFetchedResultsChangeUpdate being called on a record that has already been removed due to a cascade delete on a self referring table. ...