DACircularProgress in iPhone 5 - iphone

I am using this open source (https://github.com/danielamitay/DACircularProgress) with the following
self.largestProgressView.trackTintColor = [UIColor redColor];
self.largestProgressView.progressTintColor = [UIColor whiteColor];
self.largestProgressView.thicknessRatio = 1.0f;
It works fine on all devices apart from iPhone 5. On iPhone 5 it shows a semi circle shifted to the right of the uiview. Any ideas how I can fix this?

I managed to resolve the issue. All I had to do was add Height Constraint for the view.

Related

setRightView for UISearchBar not working in iOS 7

I am adding a button in searchbar on right side by this code
[searchtextfield setRightView:customButton];
[searchtextfield setRightViewMode:UITextFieldViewModeAlways];
It works upto iOS 6,but in iOS 7 i can not see it. Any idea how to accomplish it in iOS 7.
If you have white background then may be its the issue that you can't see search bar, I faced same problem but managed to solve this by adding this code by setting table view background.
UIView *backgroundView = [[UIView alloc] initWithFrame:self.tableView.bounds];
backgroundView.backgroundColor = [UIColor clearColor];
self.tableView.backgroundView = backgroundView;
Hope it'll help. Thanks.

UILabel Text Not Appearing on Some Devices

I have a simple UILabel setup and was receiving reports from some users that they could not see the information. I did some testing and found that I can see the text on my iPhone 4, but when I test on my old iPhone 3G, the text of the label does not appear. I can see the label (it has a colored background) but there is no text.
I am assuming most of the users have a 3GS or better, but have not nailed it down to exactly who is / is not seeing the error.
Any ideas why this could be happening ?
myLabel is linked up to a UILabel in interface builder.
myLabel.backgroundColor = [UIColor redColor];
myLabel.textColor = [UIColor blueColor];
myLabel.text = #"MY MESSAGE";
myLabel.frame = CGRectMake(0, 100, 320, 40);
I had this problem and tracked it down to a font problem. Helvetica Neue Medium does not appear on my iDevices running iOS 4.2.1. Helvetica Neue Regular is visible on them.
Im assuming that you are using a standard UILabel and not some subclass found on the internet. Are you using a custom font? Are you seeing the red backround? There are many things that could be going wrong, we need some more information.

How to view previous screen in current viewcontroller background in iphone?

im new to iphone, i have two view controllers one is homepage and other is Flipscreen and its work in good, but i want when i navigate flipscreen, the background is just like a mirror?
how? please any one help me..
I tried the code:
self.view.backgroundColor = [UIColor colorWithRed:1 green:1 blue:1 alpha:1.0];
Like a mirror in the sense? If you need a clear back ground, try self.view.backgroundColor = [UIColor clearColor];. Try to post your questions clear.

Custom tracking.borderColor in ZBarReaderView

I have a custom iPhone-App what uses the barcode reader zbar.
My problem is the tracking border color what is green (my customers most hated color because its the competitors CI-color).
Is there any chance to programmatically change this color to f.e. red or blue?
Thanks in advance!
In the ZBar sdk, ZBarReaderView has a method called "TrackingColor". The default is green.
Here is the code to change the tracking color:
reader.trackingColor = [UIColor redColor];
I am using a TabBar. So here is the code I used to get it to work:
ZBarReaderViewController *reader = [tabBarController.viewControllers objectAtIndex: 0];
reader.readerDelegate = self;
reader.readerView.trackingColor = [UIColor redColor];
I hope this helps!
The problem is already solved.
With help from spadix (http://sourceforge.net/users/spadix/) this feature is added to the current SDK version.
More information here: http://sourceforge.net/projects/zbar/forums/forum/1072195/topic/4036084

weird background in grouped table cell

We use in our application cells in a grouped tableview as buttons. Therefore we set a backgroundimage to look the cells like buttons. We used the following code:
cell.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:#"bg_gradient_mainmenu_2.png"]];
cell.textLabel.textColor = [UIColor whiteColor];
cell.textLabel.highlightedTextColor = [UIColor whiteColor];
which looks like this
The weird thing now is that it works for just some devices with different OS Systems. It definitly doesn't work on new iPhones 4.
Does anyone has a clue how solve that problem?
for iphone 4 you can set the backgroundView.
The group table behaves erratically while working with table cell background.