ios7

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

拜拜、爱过 提交于 2020-01-04 06:26:30
问题 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

View open in iPhone 5s and 5c ( iOS 7.1 ) like iPhone 4s screen

送分小仙女□ 提交于 2020-01-04 04:43:05
问题 I have a problem with my screen size in My app. For example i build app that have a single view. - (void)viewDidLoad { [super viewDidLoad]; UIView *testView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)]; testView.backgroundColor = [UIColor redColor]; [self.view addSubview:testView]; } In simulator (5 /5s iOS 8.1) the app open fine : In my iPhone ( 5s iOS 7.1 ) the app does't stretch for all the screen : You can see the black color in

“Cannot connect to iTunes Store”

吃可爱长大的小学妹 提交于 2020-01-04 04:32:50
问题 Last night In-App Purchases were not showing on iOS7 simulator devices but today I didn't even change the code and I started getting the same error on iOS 8 devices as well. this is my class class InAppC: UITableViewController, SKProductsRequestDelegate, SKPaymentTransactionObserver { and product requst in viewdid load if (SKPaymentQueue.canMakePayments()) { var productIDs:NSSet = NSSet(objects: productOne, productTwo, productThree, productFour, productFive) var productsRequest

Setting the tab bar icon color when popup is shown?

自闭症网瘾萝莉.ら 提交于 2020-01-04 03:44:07
问题 I was already able to set the text and icon colors for my tab bar items as desired. White for not active, blue for active. However, I still run into one issue: When a popover or alert view is shown, the tab bar item icon is greyed out: Is there any possibility to keep the blue color for this state? Thanks for your help. EDIT I'm sorry, but my question is not a duplicate. I already do all these things: self.tabBar.tintColor = COLOR_CORPORATE_BLUE; [[UITabBarItem appearance]

Using setInterval, setTimeout in JavascriptCore Framework for ObjectiveC

妖精的绣舞 提交于 2020-01-04 02:02:07
问题 I've been experimenting with the new Objective C JavascriptCore Framework. This is crazy, but it seems that it doesn't have setTimeout or setInterval . Which... I don't understand. Am I right about this? Are there alternatives? I could potentially create the timer in Objective C but most of my library is written in Javascript, and aside from that, it seems just weird not having setInterval or setTimeout !! I've tried a few alternative methods: window.setInterval(function(){ /* dosomething */

Bottom-up UITableView with different item height scroll to end

久未见 提交于 2020-01-04 01:53:47
问题 I have a UITableView with different item height. At the beginning the user should see the last items (that are at the end of the list) and should be able to scroll manually to the top. To get to the end of the list I use [tableView scrollToRowAtIndexPath:lastIndexPath atScrollPositionBottom animated:NO] on the main thread after I called [tableView reloadData] on a background process. To speed it up and to get to the real end I use estimatedHeightForRowAtIndexPath and I return for the first 8

Need help: 'Wrong Architecture' causing app to crash when launching in iOS 7 but works fine in iOS 8

允我心安 提交于 2020-01-03 20:03:36
问题 My app crashes when I launch it in iOS 7.1 but works fine in iOS 8.1 The error I get is this: dyld: Library not loaded: /System/Library/Frameworks/AVKit.framework/AVKit Referenced from: MY APP Reason: no suitable image found. Did find: /System/Library/Frameworks/AVKit.framework/AVKit: mach-o, but wrong architecture (lldb) I also noticed a similar error but with the UIKit mentioned instead of AVKit a few edits ago. Does anyone know how to resolve this? I'm using Xcode 6.1. I really don't want

How do I make the color of UIBarButtonItems for MFMailComposeViewController from the default blue?

女生的网名这么多〃 提交于 2020-01-03 16:58:49
问题 No matter what I seem to try, in the email screen that comes up when a user chooses to email a link (it's a MFMailComposeViewController ) the buttons are always the default blue. I have this in my AppDelegate: [[UINavigationBar appearance] setBarTintColor:[UIColor colorWithRed:0.000 green:156/255.0 blue:51/255.0 alpha:1]]; [[UINavigationBar appearance] setTintColor:[UIColor whiteColor]]; [[UINavigationBar appearance] setTitleTextAttributes:@{ NSForegroundColorAttributeName: [UIColor

Segue Push Animation with Clear Background is Flashing on iOS 7

▼魔方 西西 提交于 2020-01-03 13:33:43
问题 I have this simple storyboard : all of those UIViewController background are clear (transparent), but I put background image as navigation bar and window background using this code : - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // window background self.window.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"window"]]; // navbar background UIImage *navBackgroundImage = [UIImage imageNamed:@"navbar_bg"]; [

UITableview Cell exception - 'Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES

依然范特西╮ 提交于 2020-01-03 10:58:10
问题 I am using the UITableView. CategoryCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifierLink]; This is the line I am getting the error. It is working in IOS 7. But when I run the application in IOS 8 I am getting the error ** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES. EDIT Full code - (UITableViewCell *)tableView:(UITableView *)tableView