Dynamic UIView height with auto layout in iOS 6

You are setting the height contraint of your webView as 266. That’s why the height of the web view is still fixed. You can create this height constraint as an IBOutlet, for example: @property (weak, nonatomic) IBOutlet NSLayoutConstraint *webViewHeightConstraint; And then you can modify the constant of the height constraint when the web view has … Read more

How do I set recipients for UIActivityViewController in iOS 6?

For adding subject to the email using UIActivityViewController on iOS6, this is the best solution that anyone can use.. All you have to do is call the following while initializing UIActivityViewController. UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:applicationActivities]; [activityViewController setValue:@”My Subject Text” forKey:@”subject”]; And your UIActivityViewController is populated with a subject.

Asynchronous downloading of images for UITableView with GCD

The problem here is that your image-fetching blocks are holding references to the tableview cells. When the download completes, it sets the imageView.image property, even if you have recycled the cell to display a different row. You’ll need your download completion block to test whether the image is still relevant to the cell before setting … Read more

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