Tag: ipad

how to register the app to open the pdf file in my app in ipad

i want to open the pdf file in my app from pdf page, but i am not getting any option of opening the pdf in my app. this my info.plist file <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>PDF</string> <key>CFBundleTypeRole</key> <string>Viewer</string> <key>CFBundleTypeIconFiles</key> <string>Icon.png</string> <key>LSItemContentTypes</key> <string>com.neosofttech.pdf</string> <key>LSHandlerRank</key> <string>Owner</string> </dict> </array> <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.pdf</string> </array> […]

set background image for entire iPhone / iPad app

I have a single image I want as the background for my app no matter what viewcontroller they are on – how do you accomplish this?

API to determine whether running on iPhone or iPad

This question already has an answer here: iOS detect if user is on an iPad 16 answers

IPhone/IPad: How to get screen width programmatically?

Hi I’m wondering if there’s a way to get the width programmatically. I’m looking for something general enough to accomodate iphone 3gs, iphone 4, ipad. Also, the width should change based on if the device is portrait or landscape (for ipad). Anybody know how to do this?? I’ve been looking for a while… thanks!

Just two rounded corners?

This question already has an answer here: Rounded UIView using CALayers – only some corners – How? 12 answers

How do I set bold and italic on UILabel of iPhone/iPad?

How do I set bold and italic on UILabel of iPhone/iPad? I searched the forum but nothing helped me. Could anyone help me?

loading images from a background thread using blocks

I have the following method, which basically calls a request to load an array of NSData of images in the background thread: [query findObjectsInBackgroundWithBlock:^(NSArray * objects, NSError * error){ }]; In this case objects is an array of the NSData. The issue is that if I have 100 images to load (100 elements in the […]

iPhone popup menu like iPad popover?

How can i implement this popup menu in iphone app like a popover in ipad? EDIT: This is the best at moment: https://github.com/runway20/PopoverView

how to get ip address of iphone programmatically

This question already has an answer here: iPhone/iPad/OSX: How to get my IP address programmatically? 9 answers

How to check programmatically if an App is installed?

I am developing an iPhone application which will install few third party applications in an enterprise. I have the information about the bundle IDs. Is there a way to check if the application is already installed, using some system APIs? Currently the application gets installed again, overwriting the current installation. I need to prevent this […]