ipad

Is it safe to store a security key during a user session on the iPad/iPhone?

In my application, once the user is authenticated, he receives a sort of security key that needs to be stored for his session on the iPhone/iPad. This security key is used for all his future requests during the session. How safe is it if i were to store the key in some global variable once I get it? Can it be accessed if the iPhone is j...

iPad keyboard will not dismiss if navigation controller presentation style is "form sheet".

UPDATE: This is apparently "works as intended" classed by Apple. See accepted answer below for details. Update: this question is about a behavior discovered in the iPad keyboard, where it refuses to be dismissed if shown in a modal dialog with a navigation controller. Basically, if I present the navigation controller with the followi...

Are there any reasons you wouldn't want to use the Static Analyzer every time you build your iOS app?

I'm diving into iOS development and I just found out about the Static Analyzer and it's been pointing out all sorts of mistakes I was making in the code. The Static Analyzer doesn't really seem to eat up any extra time when building and so I'm wondering why it isn't enabled by default. Are there any reasons you wouldn't want to use the...

UISplitViewController detailViewController subviews not resizing properly on orientation change.

HI, I have the following setup in my iPad application: UISplitViewController DetailSide-> SomeDetailViewController-> Added subview as [SomeDetailViewController.view addSubview:AnotherViewController.view] Now after launching when the "AnotherViewController view" is displayed, its initial dimensions are always sam...

MinimumOSVersionn info.plist key? Itunes Connect invalid binary

Hey guys, I'm trying to submit an app with these details: Base SDK: iPhone Device 3.2 Architectures: Standard (armv6 armv7) Target Device Family: iPhone/iPad iPhone OS Deployment Target: iPhone OS 2.2.1 when I submit to Itunes Connect, I get an invalid binary with this followup: "Invalid Binary Architecture - iOS 3.0 introduces su...

URL for sending a user to the app review page on device's app store

What's the URL to launch in order to bring the iTunes App Store to the front, and open it to show the Reviews page of an app? I want to send my users to the "Write a Review" page. Some other SO answers provided URLs like the one below, but it doesn't seem to work: itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserR...

Problem with negative date on iPad and not on simulator

I'm working on an history application so I need to cope with date before and after JC. I'm trying to parse a string with the form "01/01/-200" but it returns a null date while it's working with "01/01/200". Here is my code : NSDateFormatter* dateFormatter = [[[NSDateFormatter alloc]init] autorelease]; [dateFormatter setDateFormat:@"dd...

Problem with popover overlaying some of my component

Hello, I'm using a popover to display information about the object the user clicked on. The problem is that sometimes this popover goes on top of a graphical component that need to stay visible. The solution would be to tell my UIPopverController to be displayed strictly inside a specific zone even if the anchor point is at the border...

Aliasing issue with PDF inside UIScrollView

I have a UIView subclass which displays a PDF, and this is embedded in a UIScrollView. When the user zooms in, the PDF content is pixelated. I've double checked, and anti-aliasing is enabled. If I display the PDF at a larger size using CGContextScaleCTM, it displays fine, but I don't know how to integrate this with the UIScrollView zo...

Problem with Font in iPad application

Hello, In a UIWebView of my iPad application, I display a HTML file with a Cambria font (the font type is set in a css file). This font is not supposed to work on iPad but the font that appeared seemed nice to me. Now I'm trying to use the same font in the rest of my application and I discovered that Cambria font is not available on iP...

Match look and feel of default keyboard with a custom keyboard on the iPad

I have an iPad app that needs a custom number keyboard on a view that also has a text field using the default keyboard. I have attempted to match the look of the default keyboard by drawing a gradient on a layer of the input view and using custom images on the UIButtons. Is there a better way to create a custom keyboard that matches the...

iPhone/iPad itunes library read access?

Hey guys, I looked thru the documentation a bit but didn't see anything of much substance (but I must not be looking in the right place) What are my options if I want to iterate through a user's itunes library meta data? Let's say I want to build an Array of all their song titles. Is this possible with current public SDK APIs? Dave ...

iPhone - iPad Device Type Trick in the Header File

So I've got a function that really helps when I'm crafting device specific URLS but I'd like to place it in a global header file so any class could use it easily - (NSString *)deviceType { NSString *deviceName = @"iphone"; if([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) { if (UI_USER_INTERFACE_IDIOM()...

Popovers cannot be presented from a view which does not have a window.

What is this error indicate "Popovers cannot be presented from a view which does not have a window." ...

how to open a audio link or video link from pdf file which pdf loaded in uiwebview in ipad

I am using a uiwebview to open a pdf file. I parsed the pdf file and able to extract text from it. I need to open audio or video player while clicking on that respective audio or video link.I am creating webview object runtime. I wrote the statement given below [we setDataDetectorTypes:UIDataDetectorTypeLink]; but it is not work for m...

remove gray color of uiwebview

I am using a webview . i am loading a pdf page in webview. but there is a gray color of webview. i would like to clear it. i tried as given below [we setOpaque:NO]; [we.layer setBackgroundColor:[UIColor whiteColor]]; This is not working. Please help me in advanced ...

What is the difference between Search Bar vs. Search Bar & Search Display Controller?

What is the difference between Search Bar vs. Search Bar & Search Display Controller? ...

Using UITapGestureRecognizer to show/hide menus

Hi, I'm trying to find a good way to make a tap show/hide my menus, in the same way as iBooks. I set up UITapGestureRecognizer to do this, but unfortunately it means then that none of the buttons on the screen work. I know I can use tapRecognizer.cancelsTouchesInView = NO; in order to allow the touches to go through, but then of cour...

Render UTF8 PDF correctly using CGContextDrawPDFPage

I have a japanese PDF document that I'm trying to render correctly on the iPad. I'm using the following code: CFURLRef pdfURL = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, (CFStringRef)pdfFilename, kCFURLPOSIXPathStyle, false); CGPDFDocumentRef pdfRef = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL); CFRelease(pdfURL); CGPDFPageR...

UIWebView with Touch Event

Hi! I need to be able to catch touch events on a UIWebView and still be able to use the webview's contents (html links, etc...) I have subclassed UIWebView and implemented methods: - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event; - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesMoved:(NSSe...