tag:blogger.com,1999:blog-2188951568343415255.post8805470088209672880..comments2023-10-04T10:02:42.573-05:00Comments on Kev said what?: Converting a phone app to Android tablets and the iPadMKevin3http://www.blogger.com/profile/14017088108968329074noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-2188951568343415255.post-77158601495859419692012-02-13T15:55:01.230-06:002012-02-13T15:55:01.230-06:00Madhuri, I think I understand your question. You w...Madhuri, I think I understand your question. You want to know what code I am using to detect a camera under iOS. It is NOT the best routine but it is working for me.<br /><br /><br />// Based on really crappy testing guess if we don't have a camera<br />+ (BOOL) hasCamera {<br /> struct utsname u;<br /> uname(&u);<br /> BOOL haveCamera = YES;<br /> if (!strcmp(u.machine, "iPad1,1")) {<br /> haveCamera = NO;<br /> } else if (!strcmp(u.machine, "iPod1,1")) {<br /> haveCamera = NO;<br /> } else if (!strcmp(u.machine, "iPod2,1")) {<br /> haveCamera = NO;<br /> } else if (!strcmp(u.machine, "iPod3,1")) {<br /> haveCamera = NO;<br /> } else if (!strcmp(u.machine, "i386")) {<br /> haveCamera = NO;<br /> } else if (!strcmp(u.machine, "x86_64")) {<br /> haveCamera = NO;<br /> }<br /> return haveCamera;<br />}MKevin3https://www.blogger.com/profile/14017088108968329074noreply@blogger.comtag:blogger.com,1999:blog-2188951568343415255.post-71809627066952266362012-02-12T23:18:47.348-06:002012-02-12T23:18:47.348-06:00Also please help me with some reference if possibl...Also please help me with some reference if possible. Thanksmadhurihttps://www.blogger.com/profile/07919493954672297752noreply@blogger.comtag:blogger.com,1999:blog-2188951568343415255.post-75889044799611223812012-02-12T23:17:56.808-06:002012-02-12T23:17:56.808-06:00Hi,
I was looking for something and came across wi...Hi,<br />I was looking for something and came across with this site. I have a question. How can I disable an UIActionSheet take photo with camera button when the device doesn't have a camera. Please answer me ASAP.madhurihttps://www.blogger.com/profile/07919493954672297752noreply@blogger.com