iphone

Is it possible to have a custom region shape? Core Location

六月ゝ 毕业季﹏ 提交于 2021-02-10 16:25:21
问题 For example at least I want a square/rectangle/ the shape of the road to be my region. 回答1: No it is not. As per the the documentation, currently the only region classes are CLCircularRegion, which is obviously circular, and CLBeaconRegion which is based on the proximity to an iBeacon. It is possible in the future that apple will add support for custom shaped regions but as of iOS 8, this is it. https://developer.apple.com/LIBRARY/ios/documentation/CoreLocation/Reference/CLRegion_class/index

White grid icon appears while installing app in iPhone

混江龙づ霸主 提交于 2021-02-10 14:14:50
问题 During installation, white grid icon appears and after installation app icon is shown. Is this default behaviour for adhoc apps? 回答1: This is default behavior for iOS applications. 回答2: Adding to Taylor's response. You will need to add icons to your application. To do that click on on Assets.xcassets and select AppIcon there. You will see a Image set with provided details of icon image sizes which you will need to add. If not found (or deleted by mistake) AppIcon can be added by clicking on +

3D CAD to OpenGL

旧城冷巷雨未停 提交于 2021-02-10 13:35:51
问题 I was wondering if anyone knew of a program that can take a 3D drawing of an object and then convert it into the required OpenGL points and normals. Basically I have an AutoCAD drawing of that I want to be able to display in a program I am creating for iPhone. Any suggestions? 回答1: If you have AutoCAD itself, you could export the object into a mesh format, like STL. Reading STL files is straightforward. If you don't have AutoCAD you may also try FreeCAD, which is based on OpenCascade, which

3D CAD to OpenGL

懵懂的女人 提交于 2021-02-10 13:35:27
问题 I was wondering if anyone knew of a program that can take a 3D drawing of an object and then convert it into the required OpenGL points and normals. Basically I have an AutoCAD drawing of that I want to be able to display in a program I am creating for iPhone. Any suggestions? 回答1: If you have AutoCAD itself, you could export the object into a mesh format, like STL. Reading STL files is straightforward. If you don't have AutoCAD you may also try FreeCAD, which is based on OpenCascade, which

3D CAD to OpenGL

本秂侑毒 提交于 2021-02-10 13:34:56
问题 I was wondering if anyone knew of a program that can take a 3D drawing of an object and then convert it into the required OpenGL points and normals. Basically I have an AutoCAD drawing of that I want to be able to display in a program I am creating for iPhone. Any suggestions? 回答1: If you have AutoCAD itself, you could export the object into a mesh format, like STL. Reading STL files is straightforward. If you don't have AutoCAD you may also try FreeCAD, which is based on OpenCascade, which

No history for a screen on the ios

 ̄綄美尐妖づ 提交于 2021-02-10 06:33:52
问题 I'm using monotouch for developing ios applications.Suppose that I have 3 screens: s1, s2 and s3. User can open them like this: s1 -> s2 -> s3 . I want that if user open s2 it can back by navigation back button to the s1 screen, but if it goes to the s3 screen by pressing back button in the navigation bar the application back to the s1 no s2. Is it possible in the ios? On the android if you use NoHistory attribute you can implement this feature, is there any equivalent in the ios too? 回答1:

How to group notifications like whatsapp on IOS

若如初见. 提交于 2021-02-10 05:35:29
问题 I have in my app some notifications that you recive with GCM but every notification show in one target so when you get 2 or 3 notifications it makes annoying. How to group all notifications in one target for my app? I think that will be like android, i have to identify the notification with some ID but i did not find any information about it. Thats the code that execute when the app is in background: // [START ack_message_reception] func application( application: UIApplication,

Unique identifier of an UIView object

こ雲淡風輕ζ 提交于 2021-02-10 04:15:18
问题 I am having a following problem. When a certain touch occures on a UIVIew, I want to store this UIView's unique identifier (like let's say objectID) so that when I reopen my app again I can check if in the visible UIViews there is the one UIView with the unique ID from the storage. I do not want to store the tag values as object ids because they may not be unique and they are manualy set up. I need to get a unique identifier that is automatically assign by the system. Any ideas hot to get it?

Unique identifier of an UIView object

送分小仙女□ 提交于 2021-02-10 04:11:55
问题 I am having a following problem. When a certain touch occures on a UIVIew, I want to store this UIView's unique identifier (like let's say objectID) so that when I reopen my app again I can check if in the visible UIViews there is the one UIView with the unique ID from the storage. I do not want to store the tag values as object ids because they may not be unique and they are manualy set up. I need to get a unique identifier that is automatically assign by the system. Any ideas hot to get it?

Unique identifier of an UIView object

旧巷老猫 提交于 2021-02-10 04:10:21
问题 I am having a following problem. When a certain touch occures on a UIVIew, I want to store this UIView's unique identifier (like let's say objectID) so that when I reopen my app again I can check if in the visible UIViews there is the one UIView with the unique ID from the storage. I do not want to store the tag values as object ids because they may not be unique and they are manualy set up. I need to get a unique identifier that is automatically assign by the system. Any ideas hot to get it?