小编Mla*_*den的帖子

如何在jQuery中选择具有多个类的元素?

我要选择所有具有两个类的元素ab.

<element class="a b">
Run Code Online (Sandbox Code Playgroud)

所以,只有具有两个类的元素.

当我使用$(".a, .b")它给我联盟,但我想要交集.

jquery jquery-selectors

1985
推荐指数
11
解决办法
86万
查看次数

Iphone设备令牌 - NSData或NSString

我正在以NSData对象的形式接收iPhone设备令牌.当我测试我的通知脚本功能时,我只从日志中复制了该对象,并且通知正常.但是,当我现在尝试自动执行此操作时,我将以变量的形式将设备令牌作为ASCII编码的字符串发送

self.deviceToken = [[NSString alloc] initWithData:webDeviceToken encoding:NSASCIIStringEncoding];
Run Code Online (Sandbox Code Playgroud)

我得到的字符串有一些时髦的字符,看起来与此类似 "å-0¾fZÿ÷ʺÎUQüRáqEªfÔk«"

当服务器端脚本将通知发送到该令牌时,我没有收到任何内容.

我需要解码一些东西吗?

Regardz

iphone token device-driver

33
推荐指数
3
解决办法
3万
查看次数

如何在Objective C中形成CGPoint数组

我想得到这个结构

CGPoint addLines1[] =
{
    CGPointMake(30.0, 150.0),
    CGPointMake(41.67, 145.19),
    CGPointMake(53.33, 103.25),
    CGPointMake(65.0, 131.67),
    CGPointMake(76.67, 106.11),
    CGPointMake(88.33, 110.20),
    CGPointMake(100.0, 111.54),
    CGPointMake(111.67, 112.13),
    CGPointMake(123.33, 115.66),
    CGPointMake(135.0, 123.7),
    CGPointMake(146.67, 125.53),
    CGPointMake(158.33, 115.1),
    CGPointMake(170.0, 69.38),
    CGPointMake(181.67, 112.47),
    CGPointMake(193.33, 65.1),
    CGPointMake(205.0, 103.33),
    CGPointMake(216.67, 92.6),
    CGPointMake(228.33, 54.76),
    CGPointMake(240.0, 79.66),
    CGPointMake(251.67, 53.81),
    CGPointMake(263.33, 56.81),
    CGPointMake(275.0, 88.19),
    CGPointMake(286.67, 74.81),
    CGPointMake(298.33, 28.1),
    CGPointMake(310, 20.0),
};
Run Code Online (Sandbox Code Playgroud)

为了进行一些计算和绘制数据.

我有 CGPoint *lines = appDelegate.averageResponseTimePoints;

如何使阵列addLines[]*lines

objective-c

29
推荐指数
2
解决办法
6万
查看次数

如何在Youtube帐户之间传输完整的视频?

我有以下问题.我已更改了我的服务名称,现在拥有一个不同的YouTube帐户.我想将我的所有视频以及该旧帐户的评分和评论转移到新帐户,这可能吗?

Regardz,Mladjo

youtube transfer

12
推荐指数
1
解决办法
2万
查看次数

导航视图的背景图像

我在正确显示导航视图的背景图像时遇到问题.这是图片:

替代文字

这是代码:

- (id)initWithStyle:(UITableViewStyle)style {
    if (self = [super initWithStyle:style]) {

        UIImage *image = [UIImage imageNamed: @"bg_table_active.png"];
        UIImageView *imageview = [[UIImageView alloc] initWithImage: image];
        UIBarButtonItem *addButton = [[UIBarButtonItem alloc]
                                       initWithTitle:NSLocalizedString(@"Settings", @"")
                                       style:UIBarButtonItemStyleDone
                                       target:self
                                       action:@selector(GoToSettings)];
        self.navigationItem.titleView = imageview;
        self.navigationItem.rightBarButtonItem = addButton;
        self.navigationItem.hidesBackButton = TRUE;
    }
    return self;
}
Run Code Online (Sandbox Code Playgroud)

如何将图片拉伸到整个导航视图?

iphone uinavigationbar

10
推荐指数
2
解决办法
3万
查看次数

导航栏中的按钮颜色 - iPhone

你怎么设置这个黄色按钮的色调是灰色的?我尝试过添加图片,但没有运气.

这是截图:

替代文字

这是我目前的代码:

- (id)initWithStyle:(UITableViewStyle)style {
    if (self = [super initWithStyle:style]) {

        UIBarButtonItem *addButton = [[UIBarButtonItem alloc]
                                      initWithTitle:NSLocalizedString(@"Settings", @"")
                                      style:UIBarButtonItemStyleDone
                                      target:self
                                      action:@selector(GoToSettings)];
        [addButton setImage:[[UIImage imageNamed:@"bg_table.png"] retain]];

        self.navigationItem.rightBarButtonItem = addButton;
        self.navigationItem.hidesBackButton = TRUE;
        self.view.backgroundColor = [UIColor blackColor];
    }
    return self;
}
Run Code Online (Sandbox Code Playgroud)

iphone uinavigationbar

9
推荐指数
3
解决办法
2万
查看次数

如何解析Objective C中的字符串

有人可以帮我从Objective C中的字符串"/ Date(1242597600000)/"中提取int时间戳值

我想得到1242597600000.

谢谢

parsing objective-c

6
推荐指数
2
解决办法
3万
查看次数

HOWTO删除Apple APNS反馈收到的设备令牌

我通过PHP成功获取Apple APNS反馈数据.我得到的结构(经过一些处理)看起来像这样:

时间戳

设备令牌

我的问题是如何知道我应该从数据库中删除哪些设备令牌并停止向他们发送通知.

Regardz,

Mladjo

iphone feedback push-notification apple-push-notifications

5
推荐指数
2
解决办法
2万
查看次数

阅读EXIF并确定闪光灯是否已经触发

我一直在用PHP脚本阅读一些EXIF数据.如果使用了闪光灯,我想确定某个图像.以下是EXIF阅读器返回的值

0x0     = No Flash
0x1     = Fired
0x5     = Fired, Return not detected
0x7     = Fired, Return detected
0x8     = On, Did not fire
0x9     = On, Fired
0xd     = On, Return not detected
0xf     = On, Return detected
0x10    = Off, Did not fire
0x14    = Off, Did not fire, Return not detected
0x18    = Auto, Did not fire
0x19    = Auto, Fired
0x1d    = Auto, Fired, Return not detected
0x1f    = Auto, Fired, Return detected
0x20    = …
Run Code Online (Sandbox Code Playgroud)

php exif

4
推荐指数
2
解决办法
3158
查看次数

iOS IMAP库

我试图找到一种方法如何在iOS中的IMAP服务器上搜索一些字符串.

直到现在,我的任务都失败了.

你有任何想法或指示如何实现这一目标?

Regardz,Mladjo

iphone imap ios

3
推荐指数
1
解决办法
4561
查看次数