Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using UIKit;
- using Foundation;
- using CoreGraphics;
- namespace testernew
- {
- public class CustomVegeCell : UITableViewCell {
- UIImageView imageView;
- public CustomVegeCell (string cellId) : base (UITableViewCellStyle.Default, cellId)
- {
- SelectionStyle = UITableViewCellSelectionStyle.Gray;
- ContentView.BackgroundColor = UIColor.FromRGB (218, 255, 127);
- imageView = new UIImageView();
- ContentView.AddSubviews(new UIView[] {imageView});
- }
- public void UpdateCell (UIImage image)
- {
- if (image != null) {
- imageView.Image = image;
- }
- }
- public override void LayoutSubviews ()
- {
- base.LayoutSubviews ();
- imageView.Frame = new CGRect (30, 5, 200, 200);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement