set cornerRadius and setbackgroundimage to UIButton

Here is how I would create a button through code and set its background color. UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; btn.frame = CGRectMake(100, 100, 100,50); [btn setTitle:@”Hello” forState:UIControlStateNormal]; [btn setBackgroundColor:[UIColor colorWithRed:128.0/255.0f green:0.0/255.0f blue:0.0/255.0f alpha:0.7]]; btn.frame = CGRectMake(100.0, 100.0, 120.0, 50.0);//width and height should be same value btn.clipsToBounds = YES; btn.layer.cornerRadius = 20;//half of the width … Read more

How to solve java.lang.OutOfMemoryError trouble in Android

You can’t increase the heap size dynamically but you can request to use more by using. android:largeHeap=”true” in the manifest.xml,you can add in your manifest these lines it is working for some situations. <application android:allowBackup=”true” android:icon=”@mipmap/ic_launcher” android:label=”@string/app_name” android:largeHeap=”true” android:supportsRtl=”true” android:theme=”@style/AppTheme”> Whether your application’s processes should be created with a large Dalvik heap. This applies to … Read more

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