« first day (2276 days earlier)      last day (1707 days later) » 

03:53
Good Morning All
04:40
@SaadChaudhry haha
 
2 hours later…
06:39
Hi @all
Anyone worked on Android Tv app?
07:00
BOOL PMFrameCGRectIsNull( CGRect rect ){

return (isinf(rect.origin.x) || isinf(rect.origin.y) ||
isinf(rect.size.width) || isinf(rect.size.height) || isnan(rect.origin.x) || isnan(rect.origin.y) ||
isnan(rect.size.width) || isnan(rect.size.height) || CGRectIsEmpty(rect)) ? 1 : 0;

}
how to write this in swift ?
@Shubhank
isinf?
BOOL PMFrameCGRectIsNull( CGRect rect ){ return 1 }
@Shubhank it's c++ math fuction
okay
func PMFrameCGRectIsNull (rect: CGRect) -> Bool {
   return 1
}
ya but we cant use that fun like we use in objectie c if (PMFrameCGRectIsNull(newrect)) { }
from another class
@Shubhank did you get it ?
 
3 hours later…
09:52
@Hector forgot sorry
@Hector yes if you declare outside class scope
other wise would have to use class ike

« first day (2276 days earlier)      last day (1707 days later) »