發表文章

目前顯示的是有「iPhone」標籤的文章

[ios] Set Admob banner to appear at bottom of screen

Set Admob banner to appear at bottom of screen Set in Portrait view: bannerView_ . frame = CGRectMake ( screenWidth / 2.0 - bannerView_ . frame . size . width / 2.0 , screenHeight - bannerView_ . frame . size . height , bannerView_ . frame . size . width , bannerView_ . frame . size . height ); Set in Landscape view: bannerView_ . frame = CGRectMake ( screenHeight / 2.0 - bannerView_ . frame . size . width / 2.0 , screenWidth - bannerView_ . frame . size . height , bannerView_ . frame . size . width , bannerView_ . frame . size . height );

How to setup icloud find my iphone

How to setup icloud find my iphone  You can find your iphone/ ipod from this link: https://www.icloud.com/#find Before you can locate your devices , you need to set up iCloud and turn on Find My iPhone on each of your iOS devices and Mac computers. Find My iPhone requires iOS 5 or later, or OS X v10.7.5 or later. Important:   To see all your devices in Find My iPhone, set up each device with the same iCloud account . With iOS 7 or later, Find My iPhone includes a new feature called Activation Lock , which is turned on automatically when you set up Find My iPhone. Activation Lock makes it harder for anyone to use or sell your iPhone, iPad, or iPod touch if it’s ever lost or stolen. For more information, see the Apple Support article Find My iPh...

[IOS] Add Admobs into ios app

圖片
Heres a quick guide to get Admob ads working in your monkey app. This guide will display the ads at the bottom of a portrait screen. This guide is based on the iOS guide from google here http://code.google.com/mobile/ads/docs/ios First, set up an iOS ad in Admob.. Second, open up your latest compiled project in xcode and add your project Thirdly, add the extra libs to your project in xcode AdSupport.framework AudioToolbox.framework MessageUI.framework SystemConfiguration.framework StoreKit.framework Now, its time to alter the main.h and main.mm files. Open up main.h and add the create ad banner code to the main view // ***** MonkeyViewController ***** @interface MonkeyViewController : UIViewController{ GADBannerView *bannerView_; @public } Next open up main.mm and add the import line for the ad lib #import "GADBannerView.h" next add the following to the top of @implementation MonkeyViewController - (void)viewDidLoad { [super viewDidLoad...

[Objective C] Detect if it is using ipad

The following code is for detecting ipad or not. #define IPAD UI_USER_INTERFACE_IDIOM () == UIUserInterfaceIdiomPad if ( IPAD ) { // iPad } else { // iPhone / iPod Touch }

9 surprising reasons mobile apps get rejected from the Apple app store

9 surprising reasons mobile apps get rejected from the Apple app store Apple’s App Store review process is designed to keep the app ecosystem healthy and to protect users from low-quality or hostile apps. And the system mostly works. But sometimes an app is rejected for reasons you might not expect, and it can force developers to scramble to either push back launch dates or even have to redevelop key features. Before you head down that road, here are nine surprising reasons apps get rejected by the App Store that you should consider before you submit your next app:   1.      Use of the word “beta” or otherwise indicating that your app is unfinished Google has made it a standard industry practice to launch services into indefinite “beta,” but Apple can be quite strict about any indication that an app is unfinished or not yet ready for prime time. We have seen apps get rejected for being labeled “Beta,” “Preview,” and even “Version 0.9.” 2. ...