iphone

execute code during iPhone app installation?

喜夏-厌秋 提交于 2021-01-27 18:33:32
问题 Is it possible to have code that executes during the iPhone app installation process - i.e. when it is installed from the app store? I would like to run a method which executes at install time vs when the app first loads. 回答1: No, this is not possible - the entire installation process is handled by Apple applications. At no point is your app (or any bundled code) executed during the install. 来源: https://stackoverflow.com/questions/4565878/execute-code-during-iphone-app-installation

Default UIAccessibilityElement after screen change

倾然丶 夕夏残阳落幕 提交于 2021-01-27 18:20:25
问题 Any way to decide which element gets focus first? I tried use the second parameter in the UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, element); but with no success. 回答1: Using the UIAccessibilityPostNotification method is the proper way to get your purpose. There are several types of change notifications but the two most commonly used are : UIAccessibilityLayoutChangedNotification : notifies that a part of the page has changed with 2 possible incoming parameters

Can AVAudioSession be activated in Background state without MixWithOthers?

☆樱花仙子☆ 提交于 2021-01-27 17:28:46
问题 So my app is running in the background because of CoreLocation that has requested AlwaysAuthorization. This prevents app to reach suspended state. It stays in background state and is receiving location events. After some location events I would like to activate AVAudioSession and play some sounds. How to activate session properly (in this background app) when I'm using other app in foreground right now and this app is playing audio track for example. Suppose I'm watching some video in Youtube

Google map's marker doesn't display InfoBubble on iPhone/iPad

天涯浪子 提交于 2021-01-27 17:16:22
问题 Everything about Google map works fine in different desktop browsers even in smaller screen - initialise, markers, infobubbles etc are working perfectly. But on iPhone/iPad, the InfoBubble doesn't appear when the marker is clicked. After research on Stackoverflow and followed the various solutions: Google Map Infowindow not showing properly Google Maps API v3: InfoWindow not sizing correctly Why does Safari on the iPad not display my marker on an embedded Google Maps page? how can i bind

PWA not opening in full screen mode on iphone/ipad

≡放荡痞女 提交于 2021-01-27 16:12:12
问题 I went through several articles related to PWA on ios but still not able to figure out why I am seeing address bar after adding an app to the home screen. I would be glad if someone could help me with this. meta tags in my index file <meta charset="UTF-8"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta

PWA not opening in full screen mode on iphone/ipad

风格不统一 提交于 2021-01-27 16:09:17
问题 I went through several articles related to PWA on ios but still not able to figure out why I am seeing address bar after adding an app to the home screen. I would be glad if someone could help me with this. meta tags in my index file <meta charset="UTF-8"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta

In swiftUI is it possible to add a new view onto the screen with a button?

别来无恙 提交于 2021-01-27 13:23:51
问题 Every time I Tap the button I would like a new cardView to appear. I am wondering if this is possible in swiftUI and if so what action I would need to do it. It would be even better if I am able to pass some parameters in to the cardView struct but any help would be great! struct ContentView: View { var body: some View { ZStack { VStack { TextButton(action: {print("Button tapped")}, text: "new card") CardView() } } } } struct CardView: View { var body: some View { ZStack { Rectangle() .fill

rtsp:// liveStream with AVPlayer

两盒软妹~` 提交于 2021-01-27 10:33:05
问题 I want to play liveStream on iPhoneDevice with AVPlayer. Also i want to get CVPixelBufferRef from this stream for next usage. I use Apple guide for creating player. Currently with locally stored videoFiles this player works just fine, also when i try to play this AppleSampleStremURL - http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8 - its work sine too. Problems appear when i want to play stream with rtsp:// like this one: rtsp://192.192.168.1:8227/TTLS/Streaming/channels/2

rtsp:// liveStream with AVPlayer

与世无争的帅哥 提交于 2021-01-27 10:31:13
问题 I want to play liveStream on iPhoneDevice with AVPlayer. Also i want to get CVPixelBufferRef from this stream for next usage. I use Apple guide for creating player. Currently with locally stored videoFiles this player works just fine, also when i try to play this AppleSampleStremURL - http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8 - its work sine too. Problems appear when i want to play stream with rtsp:// like this one: rtsp://192.192.168.1:8227/TTLS/Streaming/channels/2

How to access subprojects header file in main project

被刻印的时光 ゝ 提交于 2021-01-27 07:56:30
问题 I have one main project and another project which is added as a subprojects. I want to access header file which is defined in subproject into the main projects but unfortunate it is saying file not find error. Please have look on the attach image. what should I modify to access header files of subprojects? 回答1: You will need to add the path of the sub project to the search path for headers in the main project, for reading how to do it check this Adding system header search path to Xcode 来源: