ios7

How to secure or encrypt video files with NSFileManager?

余生长醉 提交于 2019-12-25 07:39:54
问题 I need to secure files in document directory or (Library directory) on iOS especially videos. I don't want user can download videos in document directory by Xcode or iExplorer app. I need to secure the private content inside of the Library directory (or) how to encrypt video file after downloading from server. Please help me on this. NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@.mp4",videoUrlName]]]; NSString* path = [NSString

App Rejection on Restoring Non-Renewable subscription on iOS 6 app

余生长醉 提交于 2019-12-25 06:55:35
问题 My app supports iOS 6 to iOS 8 . It has non-renewing subscription feature with a restore button and recently I got a rejection on this: We found that your app is using Receipt Validation found in iOS 7+ to restore Non-Renewing Subscription . However, since your Application supports iOS 6.0 , Non-Renewing Subscription cannot be restored in this manner. It would be appropriate to remove this feature from you binary and include an optional user registration feature, to deliver subscription

How can I add support for Chinese keyboard with UITextView on iOS 7?

两盒软妹~` 提交于 2019-12-25 06:38:24
问题 How can I add support for Chinese keyboard with UITextView on iOS 7 ? Currently I'm using the following code. But it works correctly only for standard-sized keyboards. It resizes UITextView only for the main keyboard without additional Chinese panel. bool keyboardIsShown; float keyboardDelta; - (void)keyboardWillShow:(NSNotification*)aNotification { if (!keyboardIsShown) { keyboardIsShown = true; NSDictionary* userInfo = [aNotification userInfo]; CGSize keyboardSize = [[userInfo objectForKey

Return data after AFNetworking is done

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 06:35:49
问题 I got a async problem with my code. I got all of my webrequests in 1 class. One of my requests needs to return an NSMutableArray that another class needs to use. My webRequest code is here: - (NSMutableArray*) getTournamentsInClub:(NSString *)clubGUID withDelegateViewController:(UIViewController *)viewController { AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; NSMutableArray *responseArray = [[[NSMutableArray alloc] init] autorelease]; NSString *URL = [

Adjust RMMarker to user's current location automatically in oflline maps using MBTiles

这一生的挚爱 提交于 2019-12-25 05:12:25
问题 Can i adjust RMMarker to user's current location using MBTiles without tapping on map? Is there any method or API to achieve this in mapbox without WiFi/3G? I just wanted to move RMMarker along with user just like in google maps. 回答1: You will probably want to use -[RMMapView setUserTrackingMode:] , which uses Core Location and can operate with just the GPS even when offline (though with less accuracy). 回答2: Use setLocation:location method we get Latitude longitude while moving using Cellular

Window for an External Display affects primary screen

别来无恙 提交于 2019-12-25 04:31:45
问题 I create a new window when there is an additional screen (up to 2). Each window shows a different content, in a different screen. The problem is under iOS7: Creating and showing this external window makes the status bar visible in the first one, which is also the main one. Then, the system adds some space (20points) to rearrange the top bar and some views. It does not work for me, because it's a custom bar. Why is this happening and how may I stop the system to add the status bar? This is the

Push Segue Error even when “Push Segue” is not used (I used modal segue)

北城余情 提交于 2019-12-25 04:27:07
问题 I got this error: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController.' I've encountered this error before and I am very familiar with it. It's usually associated with the use of a navigation controller. However, in my storyboard, I used a modal segue and I did not use a navigation controller. I have no clue why this error is there... I also updated the class ViewController to MasterViewController as the Initial View Controller but

Push Segue Error even when “Push Segue” is not used (I used modal segue)

纵然是瞬间 提交于 2019-12-25 04:27:02
问题 I got this error: 'Push segues can only be used when the source controller is managed by an instance of UINavigationController.' I've encountered this error before and I am very familiar with it. It's usually associated with the use of a navigation controller. However, in my storyboard, I used a modal segue and I did not use a navigation controller. I have no clue why this error is there... I also updated the class ViewController to MasterViewController as the Initial View Controller but

In iOS 7.1, UISearchBar's text and placeholder properties don't work anymore

烂漫一生 提交于 2019-12-25 04:25:01
问题 Starting from iOS 7.1 , I have not been able to read the text nor set the placeholder of UISearchBar. The text property always returns nil and the search bar is always a blank white rectangle. In iOS 7.0 and below, I had no such problems. Does 7.1 require me to treat UISearchBars differently to make text and placeholder work? - (void)viewDidLoad { [super viewDidLoad]; self.searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 44.0)]; self.searchBar.placeholder = @

How to increase the font size of a NSAttributedsString in iOS

醉酒当歌 提交于 2019-12-25 04:23:05
问题 I am trying to change the font size of an NSAttributedString dynamically. The problem is the string contains different font sizes and properties. so when i change the font size all the content size change to tat value. Not changing accordingly . .. . . 回答1: If I understood you correctly this approach should help you: you can enumerate all NSFontAttributeName attributes for your AttributedString and increase the font size by for instance 1. This would give you the following result: If that's