기본 콘텐츠로 건너뛰기

글

라벨이 cordova인 게시물 표시

cordova ios webview bounce disable

config.xml 은 추가 해 봐야 소용 없음 AppDelegate.m 의 - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions 에 아래 코드 추가 self.viewController.webView.scrollView.bounces = NO; AppDelegate.m /** * This is main kick off after the app inits, the views and Settings are setup here. (preferred - iOS4 and up) */ - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { CGRect screenBounds = [[UIScreen mainScreen] bounds]; #if __has_feature(objc_arc) self.window = [[UIWindow alloc] initWithFrame:screenBounds]; #else self.window = [[[UIWindow alloc] initWithFrame:screenBounds] autorelease]; #endif self.window.autoresizesSubviews = YES; #if __has_feature(objc_arc) self.viewController = [[MainViewController alloc] init]; #else self.viewController = [[[MainViewController alloc] init] autorelease]; #endif // Set your app's start page by setting the ...

cordova webview posturl

cordova webview posturl import android.webkit.WebView; import org.apache.cordova.*; import org.apache.http.util.EncodingUtils; public class MainActivity extends CordovaActivity { private static Dialog loginDialog; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String TRAGET_URL = "http://example.com/login/login_verify"; String POST_DATA = "login_id=test&login_pass=1111"; postUrl(TRAGET_URL,POST_DATA); } /** * Load the url into the webview. */ public void postUrl(String url,String data) { if (appView == null) { init(); } // If keepRunning this.keepRunning = preferences.getBoolean("KeepRunning", true); //appView.lo WebView mWebView = (WebView) appView.getView(); // WebView mWebView = (WebView) findViewById(R.id.mWebView); // WHERE R.id.mWebView is o...