Tag: ios7

苹果推送通知没有苹果服务器

有没有可能发送推送通知给iOS客户端,而不使用苹果的服务器? 而另一方面是有可能推动整个文件?! 像一个XML文件,例如,或者你可以只是推送短信?! 另一个问题,有没有办法将xml文件远程推送到iOS客户端?

自定义UIBackButtonItem和UINavigationController手势

我需要与自定义的UIBarButtonItem UINavigationBar 。 我知道如何去做(自定义视图),但是有一个问题: 使用默认的后退button项给我们的iOS 7手势,所以我们可以刷卡回去等,使用自定义的UIBarButtonItem项目不给我们这些手势。 我们如何创build自定义的UIBarButtonItem并保持iOS 7手势? 我不想从头开始构build整个轻扫手势,我不相信这是唯一的方法。

如何检测和显示我的当前位置附近的可用WiFinetworking?

我想检测所有可用的无线networking附近的我目前的位置,我必须在桌面视图中列出他们。 我不知道这个function。 任何人都有正确的解决scheme。 提前致谢

在后台任务中安排通知

我正在开发一个与Web服务器同步的iOS日历/闹钟应用程序。 在服务器上添加活动时,发送推送通知,以便iOS客户端可以获取新数据,并在需要时更新和计划下一个警报(本地通知)的时间。 但是这只有在客户端打开应用程序时才有效。 我希望客户端能够收到推送通知,如果需要的话,可以在后台重新计划下一次闹钟的时间。 这在iOS上是不可能的吗?

UITabBar徽章在iOS7中的位置

有无论如何定位UITabBar徽章? 它在iOS7中看起来没有什么变化。 在iOS7中,它向下一个标签栏项目移动。 我已经使用了一个自定义标签栏项目。 UINavigationController *navController = [self.viewControllers objectAtIndex: 0]; UIViewController *viewController = [navController.viewControllers objectAtIndex:0]; CustomTabBarItem *tabBarItem = [[CustomTabBarItem alloc] initWithTitle:EMPTY_STRING image: nil tag:2]; [tabBarItem setImageInsets:UIEdgeInsetsMake(-14.5, 0, 14.5, 0)]; tabBarItem.customHighlightedImage= [UIImage imageNamed: @"icon_on.png"]; tabBarItem.customStdImage = [UIImage imageNamed:@"icon_off.png"]; viewController.tabBarItem = tabBarItem;

UICollectionViewFlowLayout子类有时会在iOS6上崩溃

我想要一个UICollectionViewstream动布局方向是水平的。 我已经实现了方法targetContentOffsetForProposedContentOffset:withScrollingVelocity:当在表格中滚动时总是将视图“捕捉”到集合视图中的单元格。 我已经这样subclassed UICollectionViewFlowLayout(与我的实现方法的代码从这里: targetContentOffsetForProposedContentOffset:withScrollingVelocity没有inheritanceUICollectionViewFlowLayout ) @implementation SnappingFlowLayout -(id)initWithCoder:(NSCoder *)aDecoder { self = [super initWithCoder:aDecoder]; if(self) { [self customInit]; } return self; } -(void)customInit { // self.itemSize = CGSizeMake(75.0, 75.0); self.minimumInteritemSpacing = 0; self.minimumLineSpacing = 0; self.scrollDirection = UICollectionViewScrollDirectionHorizontal; self.sectionInset = UIEdgeInsetsMake(0, 0, 0, 0); } – (CGPoint)targetContentOffsetForProposedContentOffset:(CGPoint)proposedContentOffset withScrollingVelocity:(CGPoint)velocity { CGFloat offsetAdjustment = MAXFLOAT; CGFloat […]

在自定义的UINavigationBar中绘制,附在顶部

我有一个UINavigationBar的子类。 它的barPosition是UIBarPositionTopAttached 。 比我重写-(void)drawRect:(CGRect)rect在我的子类。 作为参数的rect总是有44像素的高度,而且我只能在这个矩形内部绘制。 所以,我不能执行绘图状态栏,它有默认的外观。 如果我评论 – -drawRect ,看起来如预期,导航栏和状态栏看起来整体,并有64像素的高度。 有没有一种方法来实现这个效果与-drawRect:在UINavigationBar子类?

iOS 7中的媒体查询不起作用

我正在使用一些针对iPad和iPhone的媒体查询,以及纵向定位,但是从iOS 7开始,它们不再工作。 不过,他们在iOS 6中完美工作。 有没有人有类似的经历? 以下是我正在使用的代码的一部分: <style type="text/css"> /* iPad (landscape) */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { .header { font-family: courier new, monospace; color: #999999; font-size: 14pt; line-height: 104%; width: 37.5em; } .action { font-family: courier new, monospace; color: #999999; font-size: 14pt; line-height: 104%; […]

更正UITableViewHeaderFooterView的子类化和自动布局

以下是我在UITableViewHeaderFooterView视图中设置的东西。 – (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self.contentView addSubview:self.createHeader]; } return self; } – (UIView *)createHeader { UIView *headerContainer = [[UIView alloc] init]; headerContainer.backgroundColor = [UIColor blackColor]; UILabel *label = [[UILabel alloc] initWithFrame:CGRectZero]; label.translatesAutoresizingMaskIntoConstraints = NO; label.text = @"titlename"; [headerContainer addSubview:label]; NSLayoutConstraint *constraint = [NSLayoutConstraint constraintWithItem:label attribute:NSLayoutAttributeLeading relatedBy:NSLayoutRelationEqual toItem:headerContainer attribute:NSLayoutAttributeLeft multiplier:1.f […]

在iOS7中以编程方式断开呼叫

我想在iOS7以编程方式断开电话。 我知道我们可以通过编程来处理 iPhone上的来电,短信等的中断 (无需Appstore)。 我必须创build一个启动守护进程来获取通知,因为Cateall不会在Nate的答复中解释的背景中向UIA应用发送通知。 Nate的评论显示,使用启动守护进程(不使用Appstore)可以在iPhone上断开某些调用。 所以,我的第一个问题是可能的? 如果是的话怎么办? 注意: 我的应用程序不会在AppStore上。