ios - What am I looking for? <Error>: CGAffineTransformInvert: singular matrix -


i checked other solutions on here non problem. dont think duplicate. gives error? checked scrollview , not set 0,0 , here code imageview picker:

 imagepicker =[[uiimagepickercontroller alloc] init]; imagepicker.delegate=self; imagepicker.sourcetype=uiimagepickercontrollersourcetypephotolibrary; imagepicker.allowsediting=yes;   self.popover=[[uipopovercontroller alloc] initwithcontentviewcontroller:imagepicker]; [self.popover presentpopoverfromrect:self.button.bounds inview:sender permittedarrowdirections:uipopoverarrowdirectionany animated:yes]; 

i cant see problem, can tell me looking for.

first set delegate of uipopovercontroller.

self.popovercontroller.delegate = self;    

and not sure problem presentpopoverfromrect:self.button.bounds

so give proper cgrect it, might solve problem . such

cgrect rect = cgrectmake(20, 50, 70, 40);// set need  self.popovercontroller = [[uipopovercontroller alloc] initwithcontentviewcontroller:imgpicker];     self.popovercontroller.delegate = self;         [self.popovercontroller presentpopoverfromrect:rect inview:self.scrollview permittedarrowdirections:uipopoverarrowdirectionany animated:yes]; 

and don't know inview:sender , sender must uiview.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -