Why does the Parse.com login view hide the Facebook login button? - ios

I've set up the Parse Login in my iOS app, but I'm trying to turn on some features. When I do that, the Facebook login button disappears. The lines of code that seem to do this are below. If I comment out these 2 lines, everything works fine. I'm not sure why.
[logInViewController setEmailAsUsername:true];
[logInViewController.logInView.logo setHidden:YES];
this is code for the fields that I've setup in the view:
[logInViewController setFields:PFLogInFieldsUsernameAndPassword|PFLogInFieldsSignUpButton|PFLogInFieldsDismissButton|PFLogInFieldsFacebook|PFLogInFieldsPasswordForgotten];
I'm not subclassing the view (which I do realize will give me more customization options and control, but I'm just throwing this in just to set it up) I'm using Parse-library 1.6.1. Like I said, without those 2 lines, everything works fine. Has anyone else experienced this? Any help would be much appreciated.

Related

App crashes on return from some share plugins of activityViewController

I've got a TableViewController with static table; one of it's cells houses an UIView named graphArea. The view renders a chart, it's background and an axis line - all inside it's drawRect(). There are also two another views (sunView & markerView), that are made with Interface Builder and used for chart dynamics (moving marker line and point on touch events).
All worked buttery smooth until I've implemented and tried to test a share button, that employs the ordinary activityViewController mechanism.
The magic begins, when one from a couple of share activities, whose share plugin window takes the full screen, is finished (no matter whether sharing succeeded or cancelled). The app crashes.
Discovery using debugger made apparent to me, that the crash happens, because some views, including graphArea, sunView, markerView are nil after return from sharing screen.
Only some of fullscreen share plugins (like preinstalled Mail and Messages, or, in my case, "Download to DropBox" action) lead app to crash. Other fullscreen share plugins do not (tested Telegram, WhatsApp, Skype). No one of those non-fullscreen plugins has ever caused crash (Evernote, Twitter, 2Do etc.).
It looks like graphArea, sunView, markerView are deallocated from memory when "malicious" share plugins take full screen. I haven't figured out, why.
Here's some debug info:
The traceback and assembly of fatalErrorMessage.
The next screenshot shows a part of controller code and properties, that are nil on return from share plugin (gray selection). And yes, they were all non-nil before.
Please, help me! Thank you in advance!
Thank you, Palpatim. My friend also pointed me at the same thing: I've put graphArea.removeFromSuperview() in viewDidDisappear(), and this caused the exception after share plugins, that have .presentationStyle = fullScreen. So at the point, when the app is to show again, there is no more graphArea in on the tableView.

redirection issue while integrating Facebook app in my iOS app

i have created an iOS app in which i want Facebook integration for the user to get into my app for use. so i have done all the settings by going through the "developer.facebook.com"
site and following all the steps. but in my app Facebook login works great.but after successful login the app return on same login page from where i started but i want my app return to a new view controller after authentication. so i did follow below code:
- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView
user:(id<FBGraphUser>)user {
[self performSegueWithIdentifier:#"authentication" sender:self];
}
in my very first view controller file so that after authentication it move to my wanted view controller. it move to my desired view controller but after stay on my first view controller for a while and then move to desired one.but i don't want this senario.I just want that after authentication control move directly to desired one without display my first view controller that contain Facebook login button.
please help me on this ,i stuck over this problem since many days.so any help would be appreciated.
for your knowledge i am using plain view controller and not navigation controller. and i have checked my bundle id and url scheme many times and are correct.
In loginViewShowingLoggedInUser method dissmiss the currentViewcontroller i.e one with fbloginview button..

ABNewPersonViewController broken in iOS 7

My app allows the user to link other people within the app to entries in the contact book, and if one doesn't exist add a new one. I accomplish this by presenting an ABPeoplePickerNavigationController with an added button on the top for "Add Contact" which pushes an ABNewPersonViewController.
The problem I have is this functionality works perfectly in iOS 6, but completely fails to work properly in iOS 7. Clicking the "Done" button does absolutely nothing, and clicking "Cancel" simply stops the fields from being editable.
Has anyone encountered something like this and know how to fix it? Is this a known issue (Google search returned nothing useful"
Same problem for me.
My code was as follows,
ABNewPersonViewController *npvc = [[ABNewPersonViewController alloc] init];
npvc.view.backgroundColor = [UIColor colorWithRed:0.188 green:0.545 blue:0.016 alpha:1.0];
After I removed “npvc.view.backgroundColor =…”, it works fine.
Probably the structure of ABNewPersonViewController underneath has changed, so we are not allowed to set its background color.

Don't want to dismiss popover in Titanium when user touches outside of the popover

I'm just started working in Titanium. And now working on popover in titanium, using the following code.
var myPopover = Ti.UI.iPad.createPopover({ height: 150, width: 150 });
popover.add(view);
popover.show({ view: button });
My issue is when user touches outside of the popover the popover is dismissing (default behaviour), I don't want that.
In iOS there is a delegate method called: - (BOOL)popoverControllerShouldDismissPopover:(UIPopoverController *)popoverController . If we don't want to dismiss the popover when user touches outside just return NO, is there any way to do this in Titanium ?
I read the Titanium.UI.iPad.Popover documentataion, but couldn't find any such methods.
Please help me.
Thanks in advance.
Unfortunately without significant work yourself you won't be able to in the short-term.
Some tips:
Don't trust the api docs to have everything in. Instead either look through the SDK in Github or find the SDK on your system and search through the iOS (in the iPhone folder) classes for this method.
If you go to appcelerator's JIRA account, you can request this to be implemented. Go to the Q&A and make some noise about it to get other people to watch the JIRA issue so it is prioritised by Appcelerator.
You could write a module that extends the popover functionality, in fact with modules you can extend anything and create the javascript bridge yourself so you can access any properties or anything you want. There's guides for that on the Wiki..
Happy hunting ;)

DismissModalViewControllerAnimated?

I've been looking for hours to solve my problem. Right now my program is set as a page control with a UIScrollView. So I looked at a tutorial on adding an in-app email (http://blog.mugunthkumar.com/coding/iphone-tutorial-in-app-email/).
Everything works out well until I want to cancel an email, or send the mail, the log says it did the method fine, however when i do the
[self DismissModalViewControllerAnimated:YES];
it will dismiss to the mainwindow.xib, however, I want it to dismiss back to the secondcontrollerview where the email function and button resides obviously.
What am i missing? Hope someone could help ^-^,
simply .. if you are present your mailController from seconedControllerView your app will return back to it when you dismiss the mailController.

Resources