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.
Thứ Sáu, 6 tháng 7, 2012
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
(@"UISearchBarBackground")])
{
[view removeFromSuperview];
break;
}
}
Another way:
UIImage* image = [[UIImage alloc] init];
[searchBar setBackgroundImage:image];
I hope it will help you.
for (UIView *view in searchBar.subviews)
{
if ([view isKindOfClass:NSClassFromString
(@"UISearchBarBackground")])
{
[view removeFromSuperview];
break;
}
}
Another way:
UIImage* image = [[UIImage alloc] init];
[searchBar setBackgroundImage:image];
I hope it will help you.
Đăng ký:
Bài đăng (Atom)