iphone

How do I hid the UITabBarView when loading some view?

Hey, I'm developing an iPhone app, where I have a UITabBarController that has a UINavigationController for each TabBarItem. I want, after some level of navigation, to hide the TabBar, and to replace it with a full screen view, just like the iPod application, the TabBar hides when you reach the media player, and returns when you get bac...

Is it possible to add donate button in mobile application (iOS,BB,Android)?

Some guys gave me the idea to add donate button in mobile apps instead of adding ads. I search in google, but i couldn't find useful information. It seems that this is impossible for iPhone. There isn't information for BB and i found one discussion for Android. Do you have experience with such implementation? Is it possible? I have a...

Dashcode - Attributes Inspector - Design Guide?

In the Dashcode Inspector Window when you're on the Attributes tab with a Part selected there is a checkbox labeled "Design Guide". I'm trying to find out what that is for. Anyone know? It does not seem to be mentioned in the Dashcode User Guide. Are there any other docs for Dashcode 3? Thanks! ...

Google maps and iPhone

I'm developing simple application for smart phones. It works everywhere except iPhone. Code is dead simple: js: var initial_lat = 58.3972; var initial_lng = 15.5776; var initial_zoom = 15; var map; function initialize_map() { var initialLatLng = new google.maps.LatLng(initial_lat, initial_lng); var myOptions = { zoo...

iPhone/iPad - switching Views cause orientation problems

I'm working on a universal iPhone/iPad application. I'm using MonoTouch, but I can take answers in Obj-C (I should be able to decipher it, and MonoTouch's UIKit is 1 to 1 for the most part). Basically my app has 2 views: a "login" view and a "logged-in" view. On app startup, my login view is the only subview of my main UIWindow. Afte...

Detect external hardware which is connectd to iPhone

I need to detect an external hardware which is connected to the iPhone. Let say when the camera is running in our application and user plugss an external hardware device which is a camera and default behavior is propagated to the external hardware. In that scenarios how does the program know that the external hardware is plugged? Simply ...

NSPredicate for to-many relationship, where a relationship (NSSet) must contain Entities defined in an NSArray

Given the following Core Data Model: -> : to-one releationship ->>: to-many relationship Entity A ->> Entity B Entity B -> A // each B belongs to exactly one A Entity B ->> B // a B can be related to other B's So in class A: @property (nonatomic, retain) NSSet *Bs; In class B: @property (nonatomic, retain) A *A; @propert...

what is the best way to handle json in monotouch

what are the best ways to handle json in monotouch. I've seen JSON.net but could not get it to compile in the latest monodevelop. Are there any other libraries or how are people handling this. Are there any guides out there? ...

How to format a number such a way that there is always one fractional digit?

For example, I have float values like: 0.2 1.5 2.0 3.0 10.0 52.5 60.0 Under any circumstances, I really want one fractional digit. Even if the number is exactly 1, i want it to be displayed as 1.0 I tried to set up an NSNumberFormatter like this, but it doesn't work: NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init]; [f...

showing UIView in main delegate over top all views

I have a UIView that is in my mainWindow.xib. UIView *loadingView; @property (nonatomic, retain) IBOutlet UIView *loadingView; The view has a label and UIActivityIndicator on it, and I'm trying to use the view as a "Please wait, loading..." screen. Before I push a new view onto the stack, I call [window bringSubviewToFront:loadingView]...

Access Objective-C variable from C++ function

I'm working on a project that just needs to be rewritten but that is not an option at this point. I have a C++ function that is called and does all kinds of stuff. I need it to read a variable from the App Delegate class. For example I have: @interface MyAppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; MyVi...

How to display some multiline text?

For the about section of my app, I want to display some multiline text. But which one is actually better for this? UITextView or UIWebView? What are the benefits of these, which should I prefer? ...

iPad table view reloadData erases the Navigation controller

hello stackoverflow, I am using the default splitviewController to make a learning app. Basically I am trying to load some data through a connection and display it in the rootViewController. This works great but there is a bizarre UI bug that is introduced when the table is reloaded with the data (in portrait mode). Essentially the t...

How to use an UIWebView to show small offline html documents?

Could I ship my app with an html document and display this using a UIWebView? How hard is this to use? Is it possible to have a small frame with the UIWebView inside, or does it always take up the whole screen? And can I get rid of all those controls, so the UIWebView works like an advanced UILabel or UITextView? ...

iPhone UIImagePickerController file name

Hi, after getting a selected image in didFinishPickingImage, is there a way to get the filename or name of that image? Is there any string that uniquely identifies that image or that is saved with the image at the moment image was added to the photo album? Thanks. ...

Where to find what MKDomainError error 4 means?

I keep getting this randomly when I run my gps app I'm building. It doesn't happen everytime, and the coordinates passed in are always valid (i nslog them). Is there documentation for these somewhere? ...

Load different html file on one UIWebView

Hi, iam going to change my UIWebView files via UISwipeGuesture but have problem : i have 100 HTML files that loaded on UIWebView , so i want implement something like this : if user swipes the view my webView will load next html file but the problem is my code just load first HTML file : NSString *path = [[NSBundle mainBundle] pathForR...

What is a good way to remove the formatting from a phone number to only get the digits?

Is there a better or shorter way of striping out all the non-digit characters with Objective-C on the iPhone? NSString * formattedNumber = @"(123) 555-1234"; NSCharacterSet * nonDigits = [[NSCharacterSet decimalDigitCharacterSet] invertedSet]; NSString * digits; NSArray * parts = [formattedNumber componentsSeparatedByCharactersInSet:no...

How to retrive Core Data SQL store from Developer's App on the Developer's iPhone

I need a copy of the store that is saved as Core Data sqlite file inside a test app installed on my device. I know how to get files out of the the simulator at path: ~/Library/Application Support/iPhone Simulator/[Version]/Applications/[AppID]/Documents ...but i need get the .sqlite file from the app on the device itself. ...

Upload iphone app error "The CodeResources file must be a symbolic link ...."

Hi, I have been working on this issue for over a week with no luck and tried every possible solution e.g. delete and reinstall certificates, profiles, and everything seems to be ok. My problem show up when I try to upload with Application Uploader where it shows ""The CodeResources file must be a symbolic link .... " error , so I check...