Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replaced deprecated types.

  • Loading branch information...
commit 0db88b50e347c4f0a4fb0b4f526607c1b7672bba 1 parent 289b93e
@SergioOpenPeer SergioOpenPeer authored
View
16 Samples/OpenPeerSampleApp/OpenPeerSampleApp/InfoViewController.m
@@ -131,12 +131,12 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
switch (indexPath.section)
{
case USER_INFO_STABLE_ID:
- cell.textLabel.lineBreakMode = UILineBreakModeCharacterWrap;
+ cell.textLabel.lineBreakMode = NSLineBreakByCharWrapping;
cell.textLabel.numberOfLines = 0;
cell.textLabel.text = self.homeUser.stableId;
break;
- case USER_INFO_PEER_URI:cell.textLabel.lineBreakMode = UILineBreakModeCharacterWrap;
+ case USER_INFO_PEER_URI:cell.textLabel.lineBreakMode = NSLineBreakByCharWrapping;
cell.textLabel.numberOfLines = 0;
cell.textLabel.text = ((HOPAssociatedIdentity*)self.homeUser.associatedIdentities.anyObject).homeUserProfile.identityContact.peerFile.peerURI;
break;
@@ -144,10 +144,10 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
case USER_INFO_IDENTITIES:
{
HOPAssociatedIdentity* identityInfo = [[self.homeUser.associatedIdentities allObjects] objectAtIndex:indexPath.row];
- cell.textLabel.lineBreakMode = UILineBreakModeCharacterWrap;
+ cell.textLabel.lineBreakMode = NSLineBreakByCharWrapping;
cell.textLabel.numberOfLines = 0;
cell.textLabel.text = identityInfo.name;
- cell.detailTextLabel.lineBreakMode = UILineBreakModeCharacterWrap;
+ cell.detailTextLabel.lineBreakMode = NSLineBreakByCharWrapping;
cell.detailTextLabel.numberOfLines = 0;
cell.detailTextLabel.text = [NSString stringWithFormat:@"Identity URI: %@",identityInfo.homeUserProfile.identityURI];
}
@@ -170,7 +170,7 @@ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPa
case USER_INFO_STABLE_ID:
{
UIFont* cellFont = [UIFont boldSystemFontOfSize:17.0];
- CGSize labelSize = [self.homeUser.stableId sizeWithFont:cellFont constrainedToSize:constraintSize lineBreakMode:UILineBreakModeCharacterWrap];
+ CGSize labelSize = [self.homeUser.stableId sizeWithFont:cellFont constrainedToSize:constraintSize lineBreakMode:NSLineBreakByCharWrapping];
ret = (labelSize.height) > cellDefaultHeight ? labelSize.height : cellDefaultHeight;
}
break;
@@ -179,7 +179,7 @@ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPa
{
UIFont* cellFont = [UIFont boldSystemFontOfSize:17.0];
NSString* str = ((HOPRolodexContact*)((HOPAssociatedIdentity*)self.homeUser.associatedIdentities.anyObject).rolodexContacts.anyObject).identityContact.peerFile.peerURI;
- CGSize labelSize = [str sizeWithFont:cellFont constrainedToSize:constraintSize lineBreakMode:UILineBreakModeWordWrap];
+ CGSize labelSize = [str sizeWithFont:cellFont constrainedToSize:constraintSize lineBreakMode:NSLineBreakByCharWrapping];
ret = labelSize.height > cellDefaultHeight ? labelSize.height : cellDefaultHeight;
}
break;
@@ -190,10 +190,10 @@ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPa
UIFont* cellDetailFont = [UIFont boldSystemFontOfSize:14.0];
HOPAssociatedIdentity* identityInfo = [[self.homeUser.associatedIdentities allObjects] objectAtIndex:indexPath.row];
- CGSize labelSize = [identityInfo.name sizeWithFont:cellFont constrainedToSize:constraintSize lineBreakMode:UILineBreakModeWordWrap];
+ CGSize labelSize = [identityInfo.name sizeWithFont:cellFont constrainedToSize:constraintSize lineBreakMode:NSLineBreakByCharWrapping];
NSString* str = [NSString stringWithFormat:@"Identity URI: %@",identityInfo.homeUserProfile.identityURI];
- CGSize labelDetailSize = [str sizeWithFont:cellDetailFont constrainedToSize:constraintSize lineBreakMode:UILineBreakModeCharacterWrap];
+ CGSize labelDetailSize = [str sizeWithFont:cellDetailFont constrainedToSize:constraintSize lineBreakMode:NSLineBreakByCharWrapping];
CGFloat totalCellHeight = labelSize.height + labelDetailSize.height;
ret = (totalCellHeight) > cellDefaultHeight ? totalCellHeight: cellDefaultHeight;
Please sign in to comment.
Something went wrong with that request. Please try again.