ios6

facebook integration in iphone with Facebook sdk for ios5 and 6

≡放荡痞女 提交于 2019-12-12 04:44:58
问题 i have use FAcebook sdk 3.0 to integrate facebook.I have use sample code "HelloFacebookSample" to post status. I have change in Info.plist file with my AppId. I have problem that show armv7s,armv7 architecture problem.I even solve out that by "Build Active Architecture Only "to YEs. I have code that show button for login/logout for facebook #import "HFViewController.h" #import "AppDelegate.h" #import <CoreLocation/CoreLocation.h> @interface HFViewController () <FBLoginViewDelegate> @property

XCode 4.5 - Undefined symbols for architecture armv7

Deadly 提交于 2019-12-12 04:44:45
问题 I'm brand new to iOS development, and I've been given the task of updating a legacy app to iOS6. The app was built with Unity. In XCode 4.5, when I try to run the Unity-iPhone app on my device (iPhone 4), I get this error: Xcode cannot run using the selected device. Choose a destination with a supported architecture in order to run on this device. I went to the build settings for the target, and noticed that armv6 was set for architectures and valid architectures. I changed both of these

iOS getting date string from RSS Feed

大兔子大兔子 提交于 2019-12-12 04:44:39
问题 I have an XML parser that uses RaptureXML to grab each item and display it within a table cell. I already can get the title and description, but I can't seem to work out how to get the date. Here's what I have so far for the date: NSString* dateString; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"EEEE MMMM d, YYYY"]; dateString = [formatter stringFromDate:self.pubDate]; [articleAbstract appendAttributedString: [[NSAttributedString alloc]

PrepareforSegue not displaying destinationviewcontroller

为君一笑 提交于 2019-12-12 04:39:37
问题 Segue destinationviewcontroller pdfviewcontroller not displaying pageviewcontroller - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([[segue identifier] isEqualToString:@"MYSegue"]) { // Get destination view PDFViewController *pdfviewController = [segue destinationViewController]; NSString *path = [[NSBundle mainBundle] pathForResource:@"paper" ofType:@"pdf"]; PageViewController *page = [[PageViewController alloc] initWithPDFAtPath:path]; pdfviewController= page; } }

ios7 with UIsearchBarController crashes?

那年仲夏 提交于 2019-12-12 04:38:41
问题 I am woking on ios7. In My app i am having UITableView and UISearchBar Controller. while implementing UISearchBar Controller my application crashes DUE TO following reason: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier listcell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard' i am using custom UITabelViewCell.UISearchBarController delegate methods are also

Work out what image the scroll view is currently on

旧城冷巷雨未停 提交于 2019-12-12 04:35:51
问题 Trying to workout that what image scrollview is currently on to save it to photo library. It is not working still. UIScrollView *imageScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)]; imageScrollView.pagingEnabled = YES; NSInteger numberOfViews = 61; for (int i = 0; i < numberOfViews; i++) { CGFloat xOrigin = i * self.view.frame.size.width; NSString *imageName = [NSString stringWithFormat:@"image%d.png", i]; _image =

UIDeviceOrientationDidChangeNotification is returning UIOrientationLandscapeLeft for UIOrientationLandscapeRight

不问归期 提交于 2019-12-12 04:33:18
问题 I am registering my viewcontroller for UIDeviceOrientationDidChangeNotification and it's return wrong orientation of device. I am registering it in init function of viewcontroller [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(handleOrientationChangeNotification:) name: UIDeviceOrientationDidChangeNotification object: nil]; This is my device Notification Receiver method. -(void)handleOrientationChangeNotification:(NSNotification *)notification { if(IS_IPHONE) {

UITextfields returning null in iOS 6

时光怂恿深爱的人放手 提交于 2019-12-12 04:14:19
问题 I just updated my dev system for iOS 6 and when I was testing a app I built I am now just getting (null) from my UITextfields. Here is a example of what I am doing: NSString *email = usernameField.text; After typing in that textfield and returning what I typed I only get (null) What am I missing with iOS 6 here? 回答1: Figured it out. I forgot to synthesize the textfields for that view. They worked fine without it before but iOS 6 seems to be stricter with it. 来源: https://stackoverflow.com

embedding google maps in UIWebView without asking for location permissions and showing the google panel

家住魔仙堡 提交于 2019-12-12 03:56:58
问题 I'm using google maps loaded in a UIWebView to display direction between 2 locations here's the url I'm loading in the UIWebView NSString *routeString = [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f&output=embed",[myData.myLat doubleValue],[myData.myLng doubleValue],[view.annotation coordinate].latitude,[view.annotation coordinate].longitude]; when I remove the output=ember parameter the google panel is displayed but the UIWebView asks for permission to get

Twitter Integration issue using sharekit in ios?

ε祈祈猫儿з 提交于 2019-12-12 03:56:42
问题 Am using sharekit sdk for twitter sharing it is working fine before suddenly from two days it was showing problem like "There was a problem to accessing Twitter" can any one have a idea to find out solution 回答1: Twitter recently tightened restrictions on OAuth. From the discussion (https://dev.twitter.com/discussions/16443): You must pass an oauth_callback value to oauth/request_token. It's not optional. Even if you have one already set on dev.twitter.com. If you're doing out of band OAuth,