ios6

Open camera roll on the latest photo

浪尽此生 提交于 2019-12-11 11:14:46
问题 I know already how to open the camera roll: UIImagePickerController *picker = [[UIImagePickerController alloc] init]; [picker setDelegate:self]; [picker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary]; [picker setAllowsEditing:YES]; [self presentModalViewController:picker animated:YES]; But I want it to go directly to the latest picture. It does it when you use the iPhone original camera. When you click on the thumbnail of the taken photo, the camera roll open and display it

Presenting modal viewcontroller over splitviewcontroller at app startup

荒凉一梦 提交于 2019-12-11 11:03:49
问题 Due to the need for UISplitViewController to be rootviewcontroller, I am trying instead to present a viewcontroller modally at app startup to act as a login/welcome screen for the user. Apparently the following code in my AppDelegate.m should do the trick with IOS 6: #import "AppDelegate.h" #import "WelcomeViewController.h" @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for

Lack of understanding crash report

谁说胖子不能爱 提交于 2019-12-11 10:29:03
问题 I have this crash report. Incident Identifier: CA9E350A-C842-4349-AAD8-E9E62E93BDD1 CrashReporter Key: 360bc129d2f79a48e291eb5ca38b24e822ed5b6b Hardware Model: xxx Process: OrientalDailyiOS [1502] Path: /var/mobile/Applications/39480A57-68FF-4C46-8445-340EFE204119/OrientalDailyiOS.app/OrientalDailyiOS Identifier: OrientalDailyiOS Version: ??? (???) Code Type: ARM (Native) Parent Process: launchd [1] Date/Time: 2012-10-14 15:49:10.884 -0700 OS Version: iOS 6.0 (10A403) Report Version: 104

Add a custom button to UINavigationController subclass

喜你入骨 提交于 2019-12-11 10:26:35
问题 I am trying to customize the NavigationBar by subclassing the navigation controller. For some reason I can't get the custom button to show up. My setup is pretty straight forward I have a ViewController which is embedded into a Navigation Controller which uses my custom subclass NavController : @interface NavController () @end @implementation NavController - (void)viewDidLoad{ [super viewDidLoad]; UIImage *wlImage = [UIImage imageNamed:@"wl-icon.png"]; UIButton *wlButton = [UIButton

How to send message to selected facebook friend in ios 6 with Facebook sdk 3.1?

孤人 提交于 2019-12-11 10:26:32
问题 In my application I'm getting friend list of logged in user and by selecting any one I can get his details like name, photo, id etc. But my question is that I need to send message to selected user by using his details like id with Facebook SDK 3.1. 回答1: if you want to post to users wall try this one : NSMutableDictionary *postTest = [[NSMutableDictionary alloc]init]; [postTest setObject:[NSString stringWithFormat@"Your message"] forKey:@"message"]; [postTest setObject:@"" forKey:@"picture"];

IOS Bluetooth BLE writevalue return “Unknown error”

限于喜欢 提交于 2019-12-11 10:23:37
问题 I am developping my first Smart Bluetooth (BLE) software on IOS 6. I am able to receive notifications and read chracteristics values exchanged with a Nordic Development kit including from a custom GATT profile I have created (with specific UUIDs for service and characteristics). But, everytime I am trying to write a value in a characteristic, I get the error message Unknown Error without more information. No error code, no CoreBluetooth[WARNING] from XCode. I have set my service and

iOS6 crash <Error>: libMobileGestalt copySystemVersionDictionaryValue

回眸只為那壹抹淺笑 提交于 2019-12-11 10:19:26
问题 I'm stucked over one week I cant figure it out why my app crashed only in IPAD3 ios6.0.1, all other ipads does not crash, my app uses a lot of memory because it downloads a lot of contents and uses also a lot of webviews, here is the crash log: iPad-3 backboardd[51] <Warning>: BKSendGSEvent ERROR sending event type 23: (ipc/send) invalid destination port (0x10000003) iPad-3 backboardd[51] <Warning>: BKSendGSEvent ERROR sending event type 23: (ipc/send) invalid destination port (0x10000003)

Why can I access the iPhone address book contacts without being prompted?

左心房为你撑大大i 提交于 2019-12-11 10:18:27
问题 ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(nil, nil); ABAddressBookRequestAccessWithCompletion(addressBook, ^(bool granted, CFErrorRef error) { NSArray *folks = (__bridge NSArray *)(ABAddressBookCopyArrayOfAllPeople(addressBook)); NSLog(@"%@",folks); }); I'm able to access the contacts with no prompt to the user. Opening Settings > Privacy > Contacts I see no entry for my application. (Running in Simulator) 回答1: The contacts privacy prompt doesn't work on the simulator. Try

How to enable Two-Finger rotation on Apple Maps

♀尐吖头ヾ 提交于 2019-12-11 10:07:59
问题 How can i enable Two-Finger rotation feature that we see in New Apple Maps in iOS6? Has anyone done this yet? Is there something in the documentation i might be able to find? Thanks Everyone. 回答1: It is not possible to have the rotation with the MKMapView, this is not available as a setting in the official API. 回答2: It's not possible. The API which apple has documented does not include rotation with two-fingers, Here is the Documentation : Two-Finger 回答3: just do: [mapView setRotateEnabled

CGContextDrawPDFPage leaking in iOS 6?

别来无恙 提交于 2019-12-11 10:01:45
问题 I'm working on several apps which are basically a PDF readers. Since iOS 6, apps started crashing because of being out of memory. Our apps utilize PDF Reader, but a problem is not related to it. So far we found out: 1. leaking comes from CGContextDrawPDFPage 2. it is not there (or not so prominent) in iOS <6 3. leak does not occur on PDFS with no or small compression To be specific: after opening a PDF with some compression, some memory is used. When PDF is closed, part of that memory is