ios – auto resize cell heights


hello i start learning obj-c and want to increase call log cells after write this code i have many issues with cell heights
i want to have same default cell heights for all cells

#import <UIKit/UIKit.h>
#import <UIKit/UITableViewController.h>
#import <Foundation/Foundation.h>


@interface MPRecentsTableViewCell
@property (readwrite, strong, nonatomic) UITableView * tableView;
@property (readwrite, assign, nonatomic) long long tableViewDisplayMode;
@property (readwrite, strong, nonatomic) UISegmentedControl * tableViewDisplayModeSegmentedControl;
@property (readwrite, assign, nonatomic) bool tableViewNeedsReload;
@end


%hook MPRecentsTableViewController
//-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section

-(NSInteger)tableView:(UITableView *)arg1 numberOfRowsInSection:(NSInteger)arg2 {
    return 200;
  }
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return 60.5;
}

%end```

result:-
[enter image description here](https://i.stack.imgur.com/xuHWZ.jpg)

many size no one work 

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img