How to set a mail Subject in UIActivityViewController?

Check below code for the email for setting up your email subject: UIActivityViewController* avc = [[UIActivityViewController alloc] initWithActivityItems:@[@”Your String to share”] applicationActivities:nil]; [avc setValue:@”Your email Subject” forKey:@”subject”]; avc.completionHandler = ^(NSString *activityType, BOOL completed) { // … }; Here the line [avc setValue:@”Your email Subject” forKey:@”subject”]; Makes the subject as “Your email Subject” if user picks … Read more

What is the difference between Subject and BehaviorSubject?

A BehaviorSubject holds one value. When it is subscribed it emits the value immediately. A Subject doesn’t hold a value. Subject example (with RxJS 5 API): const subject = new Rx.Subject(); subject.next(1); subject.subscribe(x => console.log(x)); Console output will be empty BehaviorSubject example: const subject = new Rx.BehaviorSubject(0); subject.next(1); subject.subscribe(x => console.log(x)); Console output: 1 In … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)