ios7

iPhone iOS7 3D select/drop down feature

荒凉一梦 提交于 2020-01-05 07:04:08
问题 I don't like the new iOS7 3D select box when it shows you the select options (image attached). Its fine on the iPad with a flat look. It makes the mobile view of the webpage look broken and confusing for the user. Its hard to move away from the box after, blends in with the background of the page etc... Is there anyway to override this horrible looking, unusable feature? default to the old? 回答1: select inputs will behave like that in iOS browser. You can not avoid it using a select box. What

SKReceiptRequest not calling (NSBundle that conforms to) SKRequestDelegate

こ雲淡風輕ζ 提交于 2020-01-05 06:42:17
问题 I am currently implementing local receipt validation following Apple's Receipt Validation Programming Guide . I have defined a category on NSBundle that conforms to SKRequestDelegate and that offers a method for receipt validation, which I call from inside main() before it initializes the application delegate and passes it to UIApplicationMain() . This is what the documentation says: Perform receipt validation immediately after your app is launched, before displaying any user interface or

How to use NSUnderlineStyle.PatternDot

半腔热情 提交于 2020-01-05 02:35:27
问题 I am trying to use NSMutableAttributedString with dotted underline below is my code but none of the Patterns seem to work am I missing something ? var str : NSMutableAttributedString = NSMutableAttributedString(string: "HelloWorld") str.addAttribute(NSUnderlineStyleAttributeName , value: NSNumber(integer:(NSUnderlineStyle.PatternDot).rawValue), range: NSMakeRange(0, str.length)) 回答1: You have to do it like this: yourLabel.attributedText = NSAttributedString(string: "Hello World !!!",

Do I still need to register for Remote Notifications to enable Silent Notifications in my app?

不想你离开。 提交于 2020-01-05 02:33:14
问题 I want to send silent notifications to my users (receive in background - not alert, sound or badge). I checked the Remote Notifications option in Xcode's Background Modes. My question is - do I still need to register for remote notifications using [UIApplication sharedApplication] registerForRemoteNotificationTypes ? If so - what type should I use? None of them looks like "Silent Notifications": UIRemoteNotificationTypeNone UIRemoteNotificationTypeBadge UIRemoteNotificationTypeSound

MPMoviePlayerViewController not working on iOS 7

断了今生、忘了曾经 提交于 2020-01-04 14:23:11
问题 I have a code that was working before iOS 7, and after update movies are not playing: -(void)setMovie:(NSURL *)newMovie autoPlay:(BOOL)autoPlay { movieView_ = [[MPMoviePlayerViewController alloc] initWithContentURL:newMovie]; [movieView_.view setContentMode:UIViewContentModeScaleAspectFit]; [movieView_.moviePlayer setShouldAutoplay:NO]; movieView_.moviePlayer.view.frame=self.view.frame; [movieView_.moviePlayer setControlStyle:MPMovieControlStyleFullscreen]; [movieView_.moviePlayer

iOS 7 UITableViewStyleGrouped missing rounded corners and cell row width fill view size

泪湿孤枕 提交于 2020-01-04 09:37:11
问题 UITableViewStyleGrouped does not have rounded corners like in iOS versions <= 6. Is anyone having same problem in iOS 7? My UITableView is all written in code as it is complex. I have had a look at all the changes and guidelines and I cannot see any mention of change to the cell appearance. Where did the corners go? 回答1: iOS 7 is Borderless. Rounded corners are no longer available in iOS 7. Apple removed this feature. I am currently working with iOS 7 and had a discussion with apple support

How do we detect when control center on iOS 7?

笑着哭i 提交于 2020-01-04 08:26:18
问题 I am having an issue when the control center appears on iOS 7. Basically, the applicationDidEnterBackground is fired when the control center appears. However in my method, I would like to detect if it's just the control center opening or the notification center since I would treat the applicationDidEnterBackground differently in that state. Any help would be appreciated. 回答1: I just published a little UIWindow subclass that does exactly that. You simply subscribe to an NSNotification and can

Merge all SKSpriteNode children into a single SKSpriteNode

大城市里の小女人 提交于 2020-01-04 08:07:05
问题 How can I take an SKSpriteNode and all its child SKSpriteNodes and merge them down into a single flattened SKSpriteNode with no children? Thanks. 回答1: Create a texture of the node and create a new sprite from that texture: SKTexture* tex = [self.scene.view textureFromNode:parentSprite]; SKSpriteNode* newSprite = [SKSpriteNode spriteNodeWithTexture:tex]; PS: be sure not to run this in init otherwise self.view will be nil. 来源: https://stackoverflow.com/questions/26075496/merge-all-skspritenode

Merge all SKSpriteNode children into a single SKSpriteNode

我们两清 提交于 2020-01-04 08:06:59
问题 How can I take an SKSpriteNode and all its child SKSpriteNodes and merge them down into a single flattened SKSpriteNode with no children? Thanks. 回答1: Create a texture of the node and create a new sprite from that texture: SKTexture* tex = [self.scene.view textureFromNode:parentSprite]; SKSpriteNode* newSprite = [SKSpriteNode spriteNodeWithTexture:tex]; PS: be sure not to run this in init otherwise self.view will be nil. 来源: https://stackoverflow.com/questions/26075496/merge-all-skspritenode

How can i delete contact from main AddressBook when i delete specific group in objective-c?

浪尽此生 提交于 2020-01-04 06:26:36
问题 i want to delete the group on addressBook. i have try this code it is successfully delete the group but on main addressBook contact are not deleted. CFErrorRef error = NULL; ABAddressBookRef iPhoneAddressBook = ABAddressBookCreate(); ABRecordRef newGroup; newGroup = ABAddressBookGetGroupWithRecordID(iPhoneAddressBook,groupId); ABAddressBookRemoveRecord(iPhoneAddressBook, newGroup, &error); ABAddressBookSave(iPhoneAddressBook,&error); my requirement is i have one service to call every time