Tag: 外部

extern NSString * const在一个类中。

嗨,我有这个头文件: #import <Foundation/Foundation.h> @interface PCConstants : NSObject extern NSString *const kPCUserProfileKey; extern NSString *const kPCUserProfileNameKey; extern NSString *const kPCUserProfileFirstNameKey; extern NSString *const kPCUserProfileLocationKey; extern NSString *const kPCUserProfileGenderKey; extern NSString *const kPCUserProfileBirthDayKey; extern NSString *const kPCUserProfileInterestedInKey; @end 执行: #import "PCConstants.h" @implementation PCConstants NSString *const kPCUserProfileKey = @"profile"; NSString *const kPCUserProfileNameKey = @"name"; NSString *const kPCUserProfileFirstNameKey = […]

ios上的外部键盘选项卡事件

我的一个iPad应用程序屏幕有多个文本框。 在这几个文本域正在生成popup式用户input行动/决定/预填充信息等,这是工作正常的时候,默认的iPad键盘正在使用。 但是当我们尝试使用带有Tab键的外部键盘时,我得到了多个textfield应该为所有呈现文本字段的事件。 我已经将所有的逻辑添加到textfielddidbeginediting方法中,但是我无法隐藏由于文本字段而popup的键盘应该通过由于tab键而生成的其他键事件。 我们怎样才能停止外部设备的标签键事件? 或者我不希望得到多个文本域应该按Tab键时被按下。 我可以重现这个问题,通过模拟器和使用多个uitextfields的MacBook键盘标签键。 TextField becomeFirstResponder问题的制表键(键盘)的行动

iOS支持外部键盘不显示一个

给定一个UIViewController ,我想只接收来自外部键盘的文本input。 认为UIKeyCommand但任何字符(不只是“修改”的)。 但是,当我尝试使用UIKeyInput来实现时,似乎iOS拼命想要显示一个键盘,如果没有外部连接。 有什么办法可以规避吗? 具体来说,如果且仅当连接一个选项才能从键盘接收按键input选项?

在iOS上使用Cordova 1.6设置外部初始页面

是否有可能加载一个外部的index.html(包括cordova.js)而不是本地的? 我在appdelegate.m中find了这个代码: self.viewController.wwwFolderName = @"www"; self.viewController.startPage = @"index.html"; 我试图引用外部url,但没有运气…任何人都知道这个解决scheme? PS 与Android很容易: super.loadUrl("http://192.168.1.135:3000/");

iOS使用UIWebVIew的外部应用程序打开文档

我有一个UIWebView 。 点击包含文档的链接时,我想在外部应用程序(办公室,openoffice等)中打开该文档,但不在UIWebView 。 我知道如何做电子邮件: – (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { if ([[[request URL] scheme] isEqual:@"mailto"]) { [[UIApplication sharedApplication] openURL:[request URL]]; return NO; } return YES; } 有没有办法做到这一点,但文件? 谢谢! 编辑:这就是我所做的: – (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { NSURL* possibleDocumentURL = [request mainDocumentURL]; NSString* extension = [[possibleDocumentURL lastPathComponent] pathExtension]; if ([[[request URL] scheme] isEqual:@"mailto"]) { […]