Thứ Sáu, 6 tháng 7, 2012

Resolved: Open Office error Restore windows

The way to solve this problem.

Open terminal and go to the path: "/Users/username/Library/Saved Application State"
Type command: sudo rm -r org.openoffice.script.savedState/
Enter password

Try to run the open office on Mac. The problem is solved.

I hope it will help you more.

Chủ Nhật, 1 tháng 7, 2012

Remove background of Search Bar in iOS

The way to remove background as below:

for (UIView *view in searchBar.subviews)
if ([view isKindOfClass:NSClassFromString
[view removeFromSuperview];

Another way: 

UIImage* image = [[UIImage alloc] init];
        [searchBar setBackgroundImage:image];

I hope it will help you.