diff --git a/Classes/Base.lproj/CallIncomingView.xib b/Classes/Base.lproj/CallIncomingView.xib
index 61be53820..c9ccbce27 100644
--- a/Classes/Base.lproj/CallIncomingView.xib
+++ b/Classes/Base.lproj/CallIncomingView.xib
@@ -36,7 +36,7 @@
-
+
@@ -289,7 +289,7 @@
-
+
diff --git a/Classes/Base.lproj/CallOutgoingView.xib b/Classes/Base.lproj/CallOutgoingView.xib
index 1bc8bc9e4..b941d181f 100644
--- a/Classes/Base.lproj/CallOutgoingView.xib
+++ b/Classes/Base.lproj/CallOutgoingView.xib
@@ -50,7 +50,7 @@
-
+
@@ -157,7 +157,7 @@
-
+
diff --git a/Classes/Base.lproj/CallView.xib b/Classes/Base.lproj/CallView.xib
index 0381706cc..91f30f33a 100644
--- a/Classes/Base.lproj/CallView.xib
+++ b/Classes/Base.lproj/CallView.xib
@@ -123,7 +123,7 @@
-
+
@@ -755,7 +755,7 @@
-
+
diff --git a/Classes/Base.lproj/ContactDetailsView.xib b/Classes/Base.lproj/ContactDetailsView.xib
index 0403843c0..4f43d3fea 100644
--- a/Classes/Base.lproj/ContactDetailsView.xib
+++ b/Classes/Base.lproj/ContactDetailsView.xib
@@ -1,8 +1,8 @@
-
+
-
+
@@ -110,7 +110,7 @@
-
+
diff --git a/Classes/Base.lproj/HistoryDetailsView.xib b/Classes/Base.lproj/HistoryDetailsView.xib
index f28a5512e..56308f6d0 100644
--- a/Classes/Base.lproj/HistoryDetailsView.xib
+++ b/Classes/Base.lproj/HistoryDetailsView.xib
@@ -79,7 +79,7 @@
-
+
@@ -97,7 +97,7 @@
-
+
@@ -215,7 +215,7 @@
-
+
@@ -233,7 +233,7 @@
-
+
diff --git a/Classes/LinphoneUI/Base.lproj/TabBarView.xib b/Classes/LinphoneUI/Base.lproj/TabBarView.xib
index d9ab148f9..db5a5ffd1 100644
--- a/Classes/LinphoneUI/Base.lproj/TabBarView.xib
+++ b/Classes/LinphoneUI/Base.lproj/TabBarView.xib
@@ -38,6 +38,7 @@
+
diff --git a/Classes/LinphoneUI/Base.lproj/UICallConferenceCell.xib b/Classes/LinphoneUI/Base.lproj/UICallConferenceCell.xib
index 1173ed64d..86240598f 100644
--- a/Classes/LinphoneUI/Base.lproj/UICallConferenceCell.xib
+++ b/Classes/LinphoneUI/Base.lproj/UICallConferenceCell.xib
@@ -1,8 +1,8 @@
-
+
-
+
@@ -17,12 +17,12 @@
-
+
-
+
@@ -71,9 +71,4 @@
-
-
-
-
-
diff --git a/Classes/LinphoneUI/Base.lproj/UIChatCell.xib b/Classes/LinphoneUI/Base.lproj/UIChatCell.xib
index 0d886c940..94ae4c1d1 100644
--- a/Classes/LinphoneUI/Base.lproj/UIChatCell.xib
+++ b/Classes/LinphoneUI/Base.lproj/UIChatCell.xib
@@ -1,8 +1,8 @@
-
+
-
+
@@ -19,7 +19,7 @@
-
+
diff --git a/Classes/LinphoneUI/Base.lproj/UIContactCell.xib b/Classes/LinphoneUI/Base.lproj/UIContactCell.xib
index 22a593e5e..cf9091590 100644
--- a/Classes/LinphoneUI/Base.lproj/UIContactCell.xib
+++ b/Classes/LinphoneUI/Base.lproj/UIContactCell.xib
@@ -1,311 +1,50 @@
-
-
-
- 1536
- 15B42
- 7706
- 1404.13
- 806.00
-
-
- IBProxyObject
- IBUIImageView
- IBUILabel
- IBUIView
-
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
-
-
-
-
-
-
-
-
- avatarImage
-
-
-
- 24
-
-
-
- nameLabel
-
-
-
- 26
-
-
-
- linphoneImage
-
-
-
- 27
-
-
-
-
-
- 0
-
-
-
-
-
- -1
-
-
- File's Owner
-
-
- -2
-
-
-
-
- 16
-
-
-
-
-
-
-
-
-
- 6
-
-
- nameLabel
-
-
- 23
-
-
- avatarImage
-
-
- 25
-
-
- linphoneImage
-
-
-
-
- UIContactCell
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- UIResponder
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- UIRoundedImageView
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
- com.apple.InterfaceBuilder.IBCocoaTouchPlugin
-
-
-
-
-
- 27
-
-
-
-
- UIContactCell
- UITableViewCell
-
- UIRoundedImageView
- UIImageView
- UILabel
-
-
-
- avatarImage
- UIRoundedImageView
-
-
- linphoneImage
- UIImageView
-
-
- nameLabel
- UILabel
-
-
-
- IBProjectSource
- ../Classes/LinphoneUI/UIContactCell.h
-
-
-
- UIRoundedImageView
- UIImageView
-
- IBProjectSource
- ../Classes/LinphoneUI/UIRoundedImageView.h
-
-
-
-
-
- UIGestureRecognizer
- NSObject
-
- IBFrameworkSource
- UIKit.framework/Headers/UIGestureRecognizer.h
-
-
-
- UIImageView
- UIView
-
- IBFrameworkSource
- UIKit.framework/Headers/UIImageView.h
-
-
-
- UILabel
- UIView
-
- IBFrameworkSource
- UIKit.framework/Headers/UILabel.h
-
-
-
- UIResponder
- NSObject
-
- IBFrameworkSource
- UIKit.framework/Headers/UIResponder.h
-
-
-
- UITableViewCell
- UIView
-
- IBFrameworkSource
- UIKit.framework/Headers/UITableViewCell.h
-
-
-
- UIView
- UIResponder
-
- IBFrameworkSource
- UIKit.framework/Headers/UIView.h
-
-
-
-
- 0
- IBCocoaTouchFramework
- NO
-
- com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3
-
-
- YES
- 3
-
- {255, 255}
- {26, 22}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Classes/LinphoneUI/Base.lproj/UIHistoryCell.xib b/Classes/LinphoneUI/Base.lproj/UIHistoryCell.xib
index 114d42eb5..26b78e815 100644
--- a/Classes/LinphoneUI/Base.lproj/UIHistoryCell.xib
+++ b/Classes/LinphoneUI/Base.lproj/UIHistoryCell.xib
@@ -1,8 +1,8 @@
-
+
-
+
@@ -18,7 +18,7 @@
-
+
diff --git a/Classes/LinphoneUI/UIAssistantTextField.m b/Classes/LinphoneUI/UIAssistantTextField.m
index f7e64c945..6e392b0ee 100644
--- a/Classes/LinphoneUI/UIAssistantTextField.m
+++ b/Classes/LinphoneUI/UIAssistantTextField.m
@@ -13,6 +13,7 @@
INIT_WITH_COMMON {
self.delegate = self;
+ return self;
}
- (void)showError:(NSString *)msg {
diff --git a/Classes/LinphoneUI/UICallPausedCell.xib b/Classes/LinphoneUI/UICallPausedCell.xib
index de8636bf7..961001800 100644
--- a/Classes/LinphoneUI/UICallPausedCell.xib
+++ b/Classes/LinphoneUI/UICallPausedCell.xib
@@ -1,8 +1,8 @@
-
+
-
+
@@ -23,12 +23,12 @@
-
+
-
+
@@ -77,9 +77,4 @@
-
-
-
-
-
diff --git a/Classes/LinphoneUI/UIChatBubblePhotoCell.xib b/Classes/LinphoneUI/UIChatBubblePhotoCell.xib
index dfcba671f..541e9b2ab 100644
--- a/Classes/LinphoneUI/UIChatBubblePhotoCell.xib
+++ b/Classes/LinphoneUI/UIChatBubblePhotoCell.xib
@@ -1,8 +1,8 @@
-
+
-
+
@@ -38,7 +38,7 @@
-
+
diff --git a/Classes/LinphoneUI/UIChatBubbleTextCell.xib b/Classes/LinphoneUI/UIChatBubbleTextCell.xib
index a453b675f..815fa05d2 100644
--- a/Classes/LinphoneUI/UIChatBubbleTextCell.xib
+++ b/Classes/LinphoneUI/UIChatBubbleTextCell.xib
@@ -1,8 +1,8 @@
-
+
-
+
@@ -37,7 +37,7 @@
-
+
diff --git a/Classes/LinphoneUI/UIMicroButton.m b/Classes/LinphoneUI/UIMicroButton.m
index 58d5c3b20..80a1cc13e 100644
--- a/Classes/LinphoneUI/UIMicroButton.m
+++ b/Classes/LinphoneUI/UIMicroButton.m
@@ -32,7 +32,7 @@
}
- (bool)onUpdate {
- return linphone_core_mic_enabled([LinphoneManager getLc]);
+ return !linphone_core_mic_enabled([LinphoneManager getLc]);
}
@end
diff --git a/Classes/LinphoneUI/UIRoundedImageView.m b/Classes/LinphoneUI/UIRoundedImageView.m
index 030c86bb5..8ec2f42af 100644
--- a/Classes/LinphoneUI/UIRoundedImageView.m
+++ b/Classes/LinphoneUI/UIRoundedImageView.m
@@ -15,6 +15,7 @@
INIT_WITH_COMMON {
[self setRoundRadius];
[self setBordered:YES];
+ return self;
}
- (void)setImage:(UIImage *)image {
@@ -39,15 +40,16 @@ INIT_WITH_COMMON {
- (void)setRoundRadius {
CALayer *imageLayer = self.layer;
- CGFloat height = self.frame.size.height;
- CGFloat width = self.frame.size.width;
+ CGFloat height = imageLayer.frame.size.height;
+ CGFloat width = imageLayer.frame.size.width;
CGFloat roundRadius = MIN(width, height) / 2;
- CGRect frame = self.frame;
- frame.size.width = frame.size.height = MIN(width, height);
- self.bounds = frame;
+ // CGRect frame = imageLayer.frame;
+ // frame.size.width = frame.size.height = MIN(width, height);
+ // imageLayer.bounds = frame;
[imageLayer setCornerRadius:roundRadius];
+ [imageLayer setMasksToBounds:YES];
}
@end
diff --git a/Classes/SideMenuView.xib b/Classes/SideMenuView.xib
index a2b1d8b11..0aedb4bb6 100644
--- a/Classes/SideMenuView.xib
+++ b/Classes/SideMenuView.xib
@@ -56,7 +56,7 @@
-
+
diff --git a/Classes/Utils/Utils.h b/Classes/Utils/Utils.h
index 54d8f4fd5..7b7d4d9c0 100644
--- a/Classes/Utils/Utils.h
+++ b/Classes/Utils/Utils.h
@@ -124,4 +124,4 @@ typedef enum {
[self commonInit]; \
return self; \
} \
- -(void)commonInit
+ -(instancetype)commonInit