ios8

iOS - In App Purchase stopped working suddenly

旧街凉风 提交于 2019-12-25 01:43:07
问题 I have developed an application for a customer over a year ago. This app has In App Purchases, and my customer have been receiving money from her clients that use the app, I can clearly see that in iTunesConnect. Last time someone bought something was in november. But now all of a sudden, this has stopped working!!! And I don't understand why. I've checked the Bundle Identifier from XCode which maches the one in AppStore. Also the product names are equal. I downloaded the app a couple of

UIButton inside UITableViewCell facing image changing issue while tableview get scrolled

流过昼夜 提交于 2019-12-25 01:06:09
问题 I am doing "Add to favourite Page" using SWIFT. In my product list table, "Wish" button is there. That button is dragged from Storyboard. If User clicks the button, that image change to another new one. I did upto this part, exactly working too. But, if we scroll the tableview, automatically another cell button image has been changed to new one. I don't know how and why? How to solve this? Kindly guide me. //MY CODING IS BELOW unc tableView(tableView: UITableView, cellForRowAtIndexPath

Add UITapGestureRecognizer to NSAttributed Text with a range

丶灬走出姿态 提交于 2019-12-24 18:05:31
问题 I have an attributed string set up like this: var range = (showStr as NSString).rangeOfString(spellingStr) var attributedString = NSMutableAttributedString(string:showStr) attributedString.addAttribute(NSForegroundColorAttributeName, value: ezGreen, range: range) and i would like to add a tap gesture just to the range that i set to green. Is there an attribute for touches? How would i set the tap gesture just for the spellingStr part? EDIT all my code for that label and string is below: var

showsUserLocation action attached to button not working

我只是一个虾纸丫 提交于 2019-12-24 17:28:39
问题 I am having problems with a map view in my app. I have created a button that when clicked should show users location on the map, but nothing happens (no error messages occur). I believe the issue may lie in the way I've written the delegates. The code from the relevant .h and .m files is below: mapViewController.h #import <UIKit/UIKit.h> #import <MapKit/MapKit.h> #import <CoreLocation/CoreLocation.h> @interface mapViewController : UIViewController { MKMapView *mapview; } @property (nonatomic,

Self Location Manager Delegate error in Xcode 6

夙愿已清 提交于 2019-12-24 17:00:02
问题 I'm using code from: http://www.veasoftware.com/tutorials/2014/6/17/xcode-5-tutorial-ios-7-simple-compass-app In Xcode 6 I get the error below. The app still runs, but this error is really annoying me. self.locationManager.delegate = self; //Assigning to 'id<CLLocationManagerDelegate>' from incompatible type 'ViewController *const __strong' 回答1: I guess you forgot to comply with the Core Location Delegate protocol by adding <CLLocationManagerDelegate> after @interface in the header file. 回答2:

iBeacon detection wake up iPhone from sleep mode with UILocalNotification

折月煮酒 提交于 2019-12-24 16:39:51
问题 My application run on iOS 8 and when it go into background it need to detect and show a notification to the user when iBeacon detected (with UILocalNotification). All works fine but when the iPhone is sleep/locked the Notification doesn't wake up the device. How can I wake up the device when a notification come in? 回答1: Make sure the phone is detecting the beacon at all. Try adding a NSLog statement inside the didEnterRegion method or wherever you launch the notification. Then, start looking

Parse iOS SDK, cannot get all fields from _User table

烂漫一生 提交于 2019-12-24 15:02:35
问题 In my application I store information in other fields of the Parse _User table such as a user rank and home City/State. I was able to read all the data from the table for a user simply by running a PFUser query command. PFQuery *userQuery = [PFUser query]; [userQuery whereKey:PARSE_CLASS_USER_USERNAME equalTo:currentUser.username]; [userQuery findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) { if (!error) { PFObject *user = [objects firstObject]; _userObject = user; [

app crashes at run before reaching my code xcode6.1 Universal App Objective-C NSKeyedUnarchiver iOS 7.0 iOS 8.1

懵懂的女人 提交于 2019-12-24 14:54:23
问题 App crashes at run under 7.1 simulator or device and runs fine on both with in 8.1 with StackTrace: appName[10676:607] *** -[NSKeyedUnarchiver initForReadingWithData:]: data is empty; did you forget to send -finishEncoding to the NSKeyedArchiver? appName[10676:607] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '(null)' *** First throw call stack: ( 0 CoreFoundation 0x007a91e4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x005258e5 objc_exception

remove cache in wkwebview objective c

只谈情不闲聊 提交于 2019-12-24 14:43:18
问题 I need to remove cache in wkwebview.I am using below code but no success. [[NSURLCache sharedURLCache]removeCachedResponseForRequest:request]; [[NSURLCache sharedURLCache] removeAllCachedResponses]; [[NSURLCache sharedURLCache] setDiskCapacity:0]; [[NSURLCache sharedURLCache] setMemoryCapacity:0]; 回答1: NSSet *dataTypes = [NSSet setWithArray:@[WKWebsiteDataTypeDiskCache, WKWebsiteDataTypeMemoryCache, ]]; [[WKWebsiteDataStore defaultDataStore] removeDataOfTypes:dataTypes modifiedSince:[NSDate

Push notifications are not working in updated version from ios7 to ios8.1

試著忘記壹切 提交于 2019-12-24 14:27:44
问题 I updated my device from ios7 to ios8.1.Push notifications are not working in updated version. I did same process for push notifications which is done in ios7. The code is also updated #ifdef __IPHONE_8_0 //Right, that is the point UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeBadge |UIUserNotificationTypeSound |UIUserNotificationTypeAlert) categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:settings