我正在开发一个用于扫描QR码的iOS应用程序.我成功地能够扫描并从QR码获取代码.
题:
我的问题是我可以从QR码中获得哪些可能的数据类型和格式?
在我搜索谷歌期间,我发现QR码可用于
这是完整列表,是否有相同的标准来表示QR码中的上述数据?对于上述QR类型,生成QR码的方法相同.
在QR码中是否有任何生成和表示数据的标准方法?
有多种方法可以开发iOS应用程序.我喜欢在Objective-C中编程来制作我的iOS应用程序.
但是你可以用做大部分的事jQTouch,jQMobile,PhoneGap等.
题:
何时适合或适合使用本机平台?
我问这个问题只是为了获取信息并清除我在iOS应用程序(Retina和non-retina设备)中关于图像的概念.
我现在做的是
当我开发一个iPhone应用程序,我必须显示一个图像让我们说UIButton使用Interface builder我拍摄两个图像让我们假设submit.png按钮图像的大小如下
在Interface builder我将设置UIButton100x100像素的大小,它只是完美的工作.
题:
为什么我们不放置单个图像让我们说submit.png
并设置UIButton尺寸为100x100像素,interface builder并且相同的图像将用于两者retina和non-retina设备中.
使用两个图像而不是一个视网膜大小的单个图像的实际原因是什么?
另一个类似问题,
iPhone 5仅在retina显示中可用,但我们必须将其Default图像设置为Default-568h@2x.png.为什么在2x?
请帮助我,我使用Facebook共享链接与我的网站徽标,但它没有显示图像,即使我有适当的图像尺寸,根据Facebook要求,你能帮助我,
http://www.facebook.com/sharer/sharer.php?s=+100&p[title]=SundtBMI&p[url]=http%3A%2F%2Fwww.redsignal.biz%2Fclients%2Fdemo%2Fsundtbmi%2F&p[images][0]=http%3A%2F%2Fwww.redsignal.biz%2Fclients%2Fdemo%2Fsundtbmi%2Fskins%2Fdefault%2Fimages%2FSB_logo.png&p[images][1]=http%3A%2F%2Fwww.redsignal.biz%2Fclients%2Fdemo%2Fsundtbmi%2Fskins%2Fdefault%2Fimages%2FSB_logo.png&p[summary]=When+I+stand+before+God+at+the+end+of+my+life%2C+I+would+hope+that+I+would+not+have+a+single+bit+of+talent+left%2C+and+could+say%2C+%27I+used+everything+you+gave+me%27.Throughout+life+people+will+make+you+mad%2C+disrespect+you+and+treat+you+bad.+Let+God+deal+with+the+things+they+do%2C+cause+hate+in+your+heart+will+consume+you+too.How+far+you+go+in+life+depends+on+your+being+tender+with+the+young%2C+compassionate+with+the+aged%2C+sympathetic+with+the+striving+and+tolerant+of+the+weak+and+strong.+Because+someday+in+your+life+you+will+have+been+all+of+these.When+I+stand+before+God+at+the+end+of+my+life%2C+I+would+hope+that+I+would+not+have+a+single+bit+of+talent+left%2C+and+could+say%2C+%27I+used+everything+you+gave+me%27.Throughout+life+people+will+make+you+mad%2C+disrespect+you+and+treat+you+bad.+Let+God+deal+with+the+things+they+do%2C+cause+hate+in+your+heart+will+consume+you+too.How+far+you+go+in+life+depends+on+your+being+tender+with+the+young%2C+compassionate+with+the+aged%2C+sympathetic+with+the+striving+and+tolerant+of+the+weak+and+strong.+Because+someday+in+your+life+you+will+have+been+all+of+these.When+I+stand+before+God+at+the+end+of+my+life%2C+I+would+hope+that+I+would+not+have+a+single+bit+of+talent+left%2C+and+could+say%2C+%27I+used+everything+you+gave+me%27.Throughout+life+people+will+make+you+mad%2C+disrespect+you+and+treat+you+bad.+Let+God+deal+with+the+things+they+do%2C+cause+hate+in+your+heart+will+consume+you+too.How+far+you+go+in+life+depends+on+your+being+tender+with+the+young%2C+compassionate+with+the+aged%2C+sympathetic+with+the+striving+and+tolerant+of+the+weak+and+strong.+Because+someday+in+your+life+you+will+have+been+all+of+these.
Run Code Online (Sandbox Code Playgroud) 单击鼠标右键时是否单击触发?我想用完整的日历实现一个右键菜单类型,但它只有dayClick事件,我认为只有在单击鼠标左键时才会触发.我在想类似的东西
dayClick: function(date, allDay, jsEvent){
if (jsEvent.button === 1){
//show menu
}else{
//do something with day
}
}
Run Code Online (Sandbox Code Playgroud)
但点击鼠标右键时不会触发dayClick ....其他任何想法?
经过大量的研究,我还没有找到答案.我正在使用wordpress主题Twenty Twelve,它似乎通过ajax请求加载页面.我有一个按钮(#header-navigation-link),它显示并隐藏了我页面上的另一个元素.它适用于没有ajax调用的第一页加载,但当我导航到另一个页面时,ajax加载它,我的程序再也找不到#nav-mobile-wrapper.
$(document).on('click', "#header-navigation-link", function () {
$(document).find("#nav-mobile-wrapper").fadeToggle();
alert( 'Success!' );
});
Run Code Online (Sandbox Code Playgroud)
在所有加载ajax的页面上,警报总是弹出,所以它找到了按钮,而不是要显示和隐藏的元素.我也试过交换两个,所以你点击#nav-mobile-wrapper来切换#header-navigation-link,同样的事情发生反之亦然.
我在这个函数中以#nav-mobile-wrapper为目标缺少什么?
感谢任何可以提供帮助的人!
有没有办法通过 sock 代理调用 HbaseAdmin/Htable?我想使用 localhost:1080 袜子代理映射到集群中的一个盒子,然后与 Hbase(Zookeeper、Master、RegionServer)交谈。有没有办法做到这一点?
谢谢。
这一切都是我的第一篇文章,我将尽可能准确.我已经阅读了很多关于iOS协议/委托实现的文章,但所有示例都失败了.假设我有A和B控制器,并希望将数据从A发送到BAh
@protocol exampleprot <NSObject>
@required
-(void) exampledmethod:(NSString *) e1;
@end
@interface ViewController
{
__weak id <exampleprot> delegate
}
Run Code Online (Sandbox Code Playgroud)
- 我试图推动一些程序
[delegate examplemethod:@"test"]
Run Code Online (Sandbox Code Playgroud)
BH
@interface test2 : UiViewcontroller <exampleprot>
Run Code Online (Sandbox Code Playgroud)
并在Bm实现方法 - (void)exampledmethod:(NSString*)e1;
那么我做错了什么?
我正在开发一个网络应用程序(网站),它将在主屏幕上添加书签,它运行一个计时器/秒表,但如果你锁定iPad,那么它会停止JavaScript等等.检测iPad何时进入的最佳方式是什么?睡眠模式/唤醒以及如何恢复计时器?
我尝试过诸如Blur,onload,onunload和Visibility API之类的事件吗?
我正在使用HTML5,所以尝试将计时器值存储在本地存储中,但不确定这是否是任何想法或代码示例的最佳方法..?
谢谢
我正在使用UINavigation控制器在xCode 4.3.2中创建一个tabBar应用程序.我在AppDelegate中使用以下代码
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
// Override point for customization after application launch.
UIViewController *viewController1 = [[[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil] autorelease];
UIViewController *viewController2 = [[[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil] autorelease];
self.tabBarController = [[[UITabBarController alloc] init] autorelease];
self.tabBarController.viewControllers = [NSArray arrayWithObjects:
[[[UINavigationController alloc] initWithRootViewController:viewController1] autorelease], viewController2, nil];
self.window.rootViewController = self.tabBarController;
[self.window makeKeyAndVisible];
return YES;
}
Run Code Online (Sandbox Code Playgroud)
现在问题是我想在导航栏中自定义背景图像.我找到的解决方案是编写UINavigationBar的子类并在接口构建器中设置新的子类.但在我的情况下,我以编程方式设置导航控制器,然后如何实现这一目标?我也尝试过创建类别
@implementation UINavigationBar (CustomImage)
- (void)drawRect:(CGRect)rect {
UIImage *image = [UIImage imageNamed:@"NavigationBar.png"];
[image drawInRect:CGRectMake(0, 0, self.frame.size.width, …Run Code Online (Sandbox Code Playgroud) ios ×4
iphone ×3
jquery ×2
ajax ×1
cordova ×1
facebook ×1
fullcalendar ×1
hbase ×1
ipad ×1
javascript ×1
objective-c ×1
qr-code ×1
right-click ×1
socks ×1
wordpress ×1
xcode4.3 ×1