我已经完成了这里解释的所有步骤:https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/3.1/
我已经测试了演示项目,并且在我的项目中失败了.(您可以在HelloFacebookSample项目上测试它).
如果您没有配置任何Facebook帐户,则无法在Facebook上分享内容,或上传图像等(与Twitter框架相同).所以框架会向您显示一条消息,告诉您:
没有配置Facebook帐户.您可以在"设置"中添加或创建Facebook帐户.
您单击设置,但唯一发生的事情是隐藏此对话框,但框架不会打开"设置"选项卡(例如在twitter框架上工作).
有谁知道如何解决这个问题?
提前致谢.
我有一个实现4个委托的UIViewController:
@interface AllProductsVC : UIViewController <UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate, UISearchDisplayDelegate>{
NSArray *array;
NSMutableArray *searchData;
UISearchBar *searchBar;
UISearchDisplayController *searchDisplayController;
}
@property int numberOfProducts;
@property int productsToLoad;
@property(nonatomic, retain) UITableView *productsTableView;
@property(nonatomic, retain) UISegmentedControl *segmentedControl;
-(IBAction)getProducts;
@end
Run Code Online (Sandbox Code Playgroud)
我的问题是viewcontroller有一个segmentedControl.在搜索期间,如果单击segmentedControl,则视图不会显示导航控制器违反用户与应用程序交互的其他时间.
我试图在搜索过程中隐藏segmentedControl,直到你更改了segmentControl,如果你在搜索没有隐藏之后更改它(搜索之前),我尝试了同样的启用但相同的结果.
有没有办法不隐藏导航控制器?我试图搜索结果,并在stackoverflow上找到其他问题,但没有帮助我.
最好的祝福
我想在本周的第一天获得每个人的特定区域设置.例如,周日美国周开始周日和周一其他国家.
我想在星期一开始为大家开始,这是因为我想将它用于SQLQuery.
我有这个:
NSDate *weekDay = [NSDate date]; //any date in the week in which to calculate the first or last weekday
NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
NSDateComponents *components = [gregorian components:NSWeekdayCalendarUnit | NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit fromDate:weekDay];
[components setDay:([components day]-([components weekday]-[[NSCalendar currentCalendar] firstWeekday]))];
NSDate *firstWeekday = [gregorian dateFromComponents:components];
NSDate *lastWeekday = [[gregorian dateFromComponents:components] dateByAddingTimeInterval:7 * 24 * 3600 - 1];
NSLog(@"first - %@ \nlast - %@", firstWeekday, lastWeekday);
Run Code Online (Sandbox Code Playgroud)
如果你的语言环境周从星期一开始,但是如果从星期日开始,那么它可以正常工作.
所以想象今天是2015年10月11日周日地区将返回第11周的第一天,最后一天,17周一地区将返回第5周的第一天,即最后一天11
我想在我的应用程序执行的任何地方返回第二个选项.
谢谢.最好的祝福.
我想知道如何使用c#中的正则表达式从字符串中删除字符0,以便接收输入:
000004000 after the regex i get: 4000
W050 after the regex i get: W050
Run Code Online (Sandbox Code Playgroud)
我很感激你的帮助.
最好的祝福.