ios7

Asset Catelog issue with multiple targets

别来无恙 提交于 2019-12-17 22:52:18
问题 I have a project with multiple targets. Assume the targets are named Target-A, Target-B and so on. For every target I have a different asset catalog of App Icons. They are named as AppIcon - A, AppIcon - B and it goes on for all the targets. I have assigned respective asset catalogs to all targets, but it only shows the icons for Target-A when i run on the device / simulator. For all other targets it does not set any icons and shows iOS 7 default placeholder icon. Please help! 回答1: When you

Table view cell expanding in IOS 7

自古美人都是妖i 提交于 2019-12-17 22:37:31
问题 I am developing an iOS application. I have used a table view. When the user clicks to any cell then the cell expands. But some cells are not expanding in iOS 7. Other versions run correctly. Below is the sample code. How can I correct it? - (BOOL)cellIsSelected:(NSIndexPath *)indexPath { // Return whether the cell at the specified index path is selected or not NSNumber *selectedIndex = [selectedIndexes objectForKey:indexPath]; return selectedIndex == nil ? FALSE : [selectedIndex boolValue]; }

SearchBar disappears from headerview in iOS 7

℡╲_俬逩灬. 提交于 2019-12-17 22:34:12
问题 I have a tableview for showing a list of devices in my application. When viewWillAppear is called, I add the self.searchDisplayController.searchBar as a subview to a headerView . I then assign self.tableView.tableHeaderView = headerView . It looks like this: I scroll the tableview down so that headerview goes out of view and then go to some other view controller by tapping on a cell. When I come back to this tableView, scroll up to the headerView, the searchBar becomes invisible, however on

RSA: encrypt in iOS, decrypt in Java

梦想的初衷 提交于 2019-12-17 22:34:00
问题 I have a public key that's sent from a Java server. The base64 encoded strings match before I decode and strip out the ASN.1 headers. I store the public key in the keychain with SecItemAdd . So I'm trying to encrypt the data using the public key and decrypt it with the private key in Java. I'm using SecKeyEncrypt on the iOS side and Cipher on the Java side. What I'm encrypting is the symmetric AES key that encrypts my actual data, so the key length is 16 bytes. When simply base64 encoding the

How do I animate in/out a gaussian blur effect in iOS?

廉价感情. 提交于 2019-12-17 22:33:45
问题 For the whole iOS 7 feel, I want to apply a blur effect to a specific portion of the screen to obfuscate it, but I don't want to just throw the blur on instantly, I want to animate it in and animate it out so the user almost sees the blur effect being applied. Almost as if in Photoshop you changed the gaussian blur value bit by bit from 0 to 10, instead of 0 to 10 in one go. I've tried a few solutions to this, the most popular suggestion being to simply put the blurred view on top of a non

Problems with gesture recognizer in iOS 7

让人想犯罪 __ 提交于 2019-12-17 22:30:32
问题 I'm adding several UIView objects (e.g. 5) to the screen, one inside the other. This, for example, view5.superview = view4 , view4.superview = view3 , view3.superview=view2 , view2.superview = view1 . For all these UIView I set uitapgesturerecognizer; for view1-4 I just do NSLog(@"tap %@", self) in callback, while for view5 tap I set the following: delete view4 from the hierarchy, then put the same object view4' at the same place of the hierarchy. This object also contains view5' for which

Detecting user settings for Background App Refresh in iOS 7

有些话、适合烂在心里 提交于 2019-12-17 22:29:25
问题 Starting with iOS 7, Apple's Multitasking APIs allow apps to run in three new Background Modes: Background fetch, Remote notification content, and Background transfer service. Apple also gives iOS users the ability to control whether all apps are allowed to run in the background or whether individual apps can run in the background (Settings > General > Background App Refresh). Is there is a way for my app to programmatically detect whether the user has disabled my app's ability to refresh in

How to replicate Messages bouncing bubbles in iOS 7

落花浮王杯 提交于 2019-12-17 22:21:49
问题 When you are in a conversation within the Messages app in iOS 7, if you scroll up or down you will notice that the bubbles and more so the text saying when the messages were sent, will bounce into place. I am trying to replicate this in my own table view, but am not finding a way to do it. I assume it is using UIDynamics, but I am not sure how to tie that in with the scrolling and the content bouncing. Any help would be appreciated 回答1: If you want to replicate that effect yourself, you need

Google Map crashes in IOS7

*爱你&永不变心* 提交于 2019-12-17 22:05:10
问题 We are developing an Hybrid app and we are using google map API in our application. When we are trying to load 2000 data markers in the map, it got crashed. Map is not get crashed in IOS6, IOS5. It is happening only in IOS7. Is there any memory related change done for ios7 application. 回答1: As said previously iOS7 is more strict with memory usage. This behavior occurs in other browsers like Chrome, so when an app reach upper limit in memory usage, the crash appears. I have isolated two test

iOS 7 Custom TableView Is Under TabBar

谁说胖子不能爱 提交于 2019-12-17 21:55:25
问题 Im trying port my app to iOS7 , but my custom TableViewController is showing the last row (cell) under the TabBar :( Im searching a lot for it, but i dont find any solution. Can anyone help me? My Custom Table View class The error is shown in the blow screenshot (only is showing a part of last product because im draging to up to show the hidden product under the tabbar): Thanks. 回答1: I found the answer to your question on another post, answered by dariaa, here: Tab Bar covers TableView cells