Tag: ios7

从CardIO中添加STPView(Stripe) – iOS上的信用卡号码

我一直在实施在CardIO使用CardIO和Stripe开发的信用卡页面。 CardIO: https : //github.com/card-io/card.io-iOS-SDK 条纹: https : //stripe.com/docs/mobile/ios 想知道如何将CardIO的信用卡号码添加到STPView (Stripe)中。 简单地解释我想要做什么完全相同的BIZZBY应用程序中的支付卡页面。 BIZZBY: http : //www.bizzby.com/ 任何天才帮我出去? 谢谢。

iOS – In App Purchase突然停止工作

一年前我开发了一个客户的应用程序。 这个应用程序已经在应用程序内购买,我的客户已经从她的客户端使用该应用程序的钱,我可以清楚地看到,在iTunesConnect。 上次有人买东西是在十一月。 但现在突然间,这已经停止了工作! 我不明白为什么。 我已经检查了来自Xcode的Bundle Identifier,这个标识符在AppStore中进行了修改。 产品名称也是相同的。 几分钟前,我从AppStore下载了应用程序,并使用命令idevicesyslog查看所有控制台输出。 问题是这样的: -(void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response{ NSArray *products = response.products; if (products.count != 0) { self.product = products[0]; NSLog(@"pro: %@", self.product.localizedTitle); SKPayment *payment = [SKPayment paymentWithProduct:self.product]; [[SKPaymentQueue defaultQueue] addPayment:payment]; } else { self.pro1Btn.enabled = YES; self.pro2Btn.enabled = YES; NSLog(@"pro: not found"); // THIS WAS SHOWN IN CONSOLE […]

如何删除空的标题标题

我有一个表视图,因为我有标题标题,他们工作正常,但标题标题值的总和变为空,我想隐藏我的表视图中的空标题标题。 我怎么能做这个过程。 请帮我编码。 – (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { return [reverseOrder1 objectAtIndex:section]; } – (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { return 60; } -(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 75)]; UILabel *headerTitile =[[UILabel alloc]initWithFrame:CGRectMake(20, -5, tableView.bounds.size.width-20, 75)]; headerTitile.text = [reverseOrder1 objectAtIndex:section]; headerTitile.textColor = [UIColor whiteColor]; headerTitile.TextAlignment=NSTextAlignmentCenter; [headerView addSubview:headerTitile]; headerTitile.font = […]

识别屏幕locking的滑动模式n解锁ios

我想创build一个用于locking的滑动模式并解锁屏幕(不用摘下手指即可滑动)。 我如何使用UISwipeGestureRecognizer来做到这一点。 当我再次尝试login时,我想保存并匹配它。 我该如何保存? 作为一个形象或别的东西? 请帮助我这个。 谢谢。

在iOS 7中的accessibilityTraits支持

在我的iPhone应用程序中,我使用textFieldMain.accessibilityTraits = UIAccessibilityTraitUpdatesFrequently; 它在ios 6中工作正常,但不能在ios 7中工作。我该如何解决这个问题?

导航栏与视图相同的bg颜色

我们的devise师希望导航栏具有与视图相同的背景颜色。 不过,他们也希望导航栏保持半透明。 显然,如果我把它设置为非半透明的,它会起到一定的作用: [[UINavigationBar appearance] setTranslucent:NO]; 但这不是预期的效果。 有没有一种方法,我可以使他们相同的颜色,而无需花费数小时调整导航栏的背景颜色? 这就是我们将导航和视图设置为相同的颜色时的样子:

MonoTouch UIImage.FromFile不加载视网膜资产

我正在用iOS7模拟器testing。 我的所有资产都只有@ 2x名称的视网膜。 我有一个非常奇怪的行为与UIImage.FromFile。 请注意,模拟器iPad和模拟器iPad Retina的行为是相同的。 基本上: UIImage.FromBundle(“Images / close.png”),这将工作:它加载了close@2x.png并缩小 UIImage.FromFile(“Images / close.png”),这是行不通的 UIImage.FromFile(“Images / close @ 2x.png”),这加载图像,但我不知道它会做预期的事情(即:缩小它在非视网膜设备,并正确使用视网膜设备) 任何提示? 我以为iOS7是自动处理这个。

select的图像不会加载在ios 7中的自我图像查看器

我正在使用EGOPhotoViewer加载一堆来自s3的图像。 它们在表格视图中以缩略图的forms显示,所以当用户点击第五行图像时,它将图像从20开始加载到图像查看器中。 这在ios 6中运行正常。 但是当我安装ios 7并运行我的app.i有一个错误。 它无法加载点击的图像。 当用户点击图像的第5行时,图像查看器会从20开始加载第一个图像。 我正在使用这么多的代码。 – (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { …… [self showSelectedPhoto:indexPath]; …… } //load the selected image -(void)showSelectedPhoto:(NSIndexPath *)indexPath { [UserInfo sharedInfo].Path=indexPath; NSLog(@"%@",indexPath); NSString *passingImageName=[[self.tableDataSource objectAtIndex:indexPath.row]objectForKey:@"fileName"]; NSMutableArray *photoArray=[self getFilteredArray]; NSMutableArray *urlsArray=[[NSMutableArray alloc] init]; // [self.tableView reloadData]; for (NSString *string in photoArray) { NSLog(@"String Values:%@",string); NSURL *imageUrl=[self getEnlargedImageImageUrl:[self._prefix stringByAppendingString:string]]; […]

'SessionDelegate'没有名为'xxx'的成员

我以前问过关于如何使用可选方法创build协议的问题。 答案几乎是使用Objective-c。 在这里看到 。 我做了,一切正常,因为我正在使用 var delegate: SessionDelegate?; 也就是说,“委托”是一个可选的SessionDelegate。 为了调用该委托的方法,我可以简单地写: self.delegate?.willOpenSession?(self); 哪个很好 但是,然后我虽然,为什么使委托可选? 所以我改变了它: var delegate: SessionDelegate; 显然,通话也改变了: self.delegate.willOpenSession?(self); 问题是,这最后一行(和其他types)说:'SessionDelegate'没有名为'willOpenSession'的成员。 为什么这不工作? 这是我的代码: SessionDelegate.h @class Session; @protocol SessionDelegate <NSObject> @optional – (BOOL)willOpenSession:(Session*)session; – (void)didOpenSession:(Session*)session; – (void)didFailOpenningSession:(Session*)session withError:(NSError*)error; – (BOOL)willCloseSession:(Session*)session destroyingToken:(BOOL)destroyingToken; – (void)didCloseSession:(Session*)session destroyingToken:(BOOL)destroyingToken; @end XXX桥接,Header.h #import <Foundation/Foundation.h> #import <FacebookSDK/FacebookSDK.h> #import "SessionDelegate.h" Session.swift import Foundation protocol Session […]

如何清除ios 7中的无效CGContext错误。

我正在做一个应用程序。在ios 7中,我得到了如下的错误。 <Error>: CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming […]