發表文章

目前顯示的是 5月 25, 2014的文章

The best jQuery plugin for creating side menus and the easiest way for doing your menu responsive

圖片
The best jQuery plugin for creating side menus and the easiest way for doing your menu responsive (Yes, I like the way Facebook implements its menu on mobile) By Alberto Varela Download You will be able to create multiple sidrs on both sides of your web to make responsives menus (or not, it works perfectly on desktop too). Fill the sidrs normally, with existent content, remote content,... or what you want. Source from : http://www.berriart.com/sidr/

[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 }