ios7.1

uitableview cell changes the content in first row when changing content in fourth row

会有一股神秘感。 提交于 2019-12-13 04:43:54
问题 I have a tableview with gestures for particular cell. After the tableview loads, i scrolled to the fourth row and swiped left it will show some content, its working fine. But after that when i go back to first row, its also showing the same content in the fourth row. When I run this code with ios8, its working fine.Above problem is occurred only when I run this in ios7. My code as follows: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

Disable connection alert (Multipeer connectivity)

独自空忆成欢 提交于 2019-12-13 04:22:38
问题 Since iOS 7.1 Apple removed: - (void)advertiser:(MCNearbyServiceAdvertiser *)advertiser didReceiveInvitationFromPeer:(MCPeerID *)peerID withContext:(NSData *)context invitationHandler:(void(^)(BOOL accept, MCSession *session))invitationHandler and added: - (void)advertiserAssitantWillPresentInvitation:(MCAdvertiserAssistant *)advertiserAssistant; - (void)advertiserAssistantDidDismissInvitation:(MCAdvertiserAssistant *)advertiserAssistant; Is there any ability not to show this message? 回答1:

Share video on whatsapp - objective c

六月ゝ 毕业季﹏ 提交于 2019-12-13 02:56:18
问题 On iOS 7.1.1, I can share image by this code on Whatsapp.. if ([[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString:@"whatsapp://app"]]){ UIImage * iconImage = [UIImage imageNamed:@"image.png"]; NSString * savePath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/whatsAppTmp.wai"]; [UIImageJPEGRepresentation(iconImage, 1.0) writeToFile:savePath atomically:YES]; self.docController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL

iOS 7.1 UINavigationBar Image

一笑奈何 提交于 2019-12-12 12:33:01
问题 So prior to iOS 7.1 I was setting the background image in my app UINavigation Bar via UI Appearance like so. [[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"image-name"] forBarMetrics:UIBarMetricsDefault]; It was working fine and the content was getting blurred properly when behind it. Now the content is not blurred at all the navigation bar is just transparent. If I remove the image and set just the navigation bar tintColor it will blur the content correctly. Anyone

Getting “Cannot install applications because the certificate is not valid” error on iOS 7.1

烂漫一生 提交于 2019-12-12 07:57:17
问题 I'm getting the above mention error when my client update their device to iOS 7.1, and then try to update our app from the AppCenter. After some searching, i found a post with a similar problem here. But then since i'm in an environment where by the client is using AppCenter to update the apps, i can't be using USB to plugin and install the app for them. Is there any workaround for downloads via AppCenter until a support is released? 回答1: A change was introduced to iOS as of iOS 7.1 that

iOS 7.1 removeFromSuperview crash

微笑、不失礼 提交于 2019-12-12 07:30:43
问题 My app didn't have any crash until iOS 7.1 came out. Now on any removeFromSuperview method, crash. For example: I got view controllers, and when I want to remove a view controller, I remove all of its subviews, and then remove from the stack (stack: I'm storing view controllers in this, for load new contents, and load previous contents): for (UIView *subView in [contentVc subviews]) [subView removeFromSuperview]; And I got -[CALayer retain]: message sent to deallocated instance message

swift animateWithDuration not working in iOS 7

落花浮王杯 提交于 2019-12-12 03:17:00
问题 I have an animation thats running fine in iOS 8.1 but in iOS 7.1 the button just appears where it is supposed to be without animation. The button has leading, trailing and bottom constraints of 0, and height constraint of 80. The constraints are setup in the storyboard. In the viewWillAppear method I change the bottom constraint to -80 so it isn't seen in the beginning. When the user presses a button, the button should animate up, I run this method: func animateCtaUp() { self.ctaView

ObjC, revert to interface builder autolayout constraints, after adding / removing programmatically?

偶尔善良 提交于 2019-12-12 01:52:06
问题 I have a free version of my app and I remove + add autolayout constraints (to hide a premium feature), however if the user purchases my app I'd like to revert back to to the constraints set by interface builder. I'm hoping there's a method which will achieve this, but I haven't been able to find it so far? Here's what I have if (!purchased) { [self.tblOtherAccounts addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:[tblOtherAccounts(==0)]" options:0 metrics:nil views

iOS7.1 - install .ipa with wireless AdHoc distribution and Entreprise account

谁说胖子不能爱 提交于 2019-12-11 20:27:16
问题 I have some questions about the installation of .ipa file with wireless AdHoc distribution and Enterprise account to be completely clear in my mind (we use XCode 5.1, iOS 7.1) I read (here) that, for adhoc distribution, we don't need an Entreprise account, is that true ? Because I tested the method described in the link but it didn't work. Do we need an Entitlement file anymore ? Is the mobileprovision file already included in the .ipa file generated by XCode 5.1 ? (if we do Product ->

GPUImage blend filters

扶醉桌前 提交于 2019-12-11 12:57:07
问题 I'm trying to apply a blend filters to 2 images. I've recently updated GPUImage to the last version. To make things simple I've modified the example SimpleImageFilter. Here is the code: UIImage * image1 = [UIImage imageNamed:@"PGSImage_0000.jpg"]; UIImage * image2 = [UIImage imageNamed:@"PGSImage_0001.jpg"]; twoinputFilter = [[GPUImageColorBurnBlendFilter alloc] init]; sourcePicture1 = [[GPUImagePicture alloc] initWithImage:image1 ]; sourcePicture2 = [[GPUImagePicture alloc] initWithImage