the app in background mode. when detect Ibeacon(https://developer.apple.com/ibeacon/) in background mode open popup.
I can display local-notification to the user when detect Ibeacon detect.
Is Apple allows to open popup in background-mode Swift?
lang - Swift
It is not possible as you need a ViewController or a NavigationController to show the AlertController from.
Also, it is not possible to show a ViewController from a background mode.
By now, your only option is to show LocalNotification or PushNotification and trigger the APP when the users clicks on it.
Check also this other ANSWER
Related
Is there any reason why my local notification is displayed in notification centre but not POPED up? Is there any setting to make it popup?
A local notification will be displaid as all other notifications, there is nothing you as a Developer can do about it.
The default settings for notification is to display them as a banner at the top of the screen, not like a alert view as in previous version of iOS.
Only the user can set the display style in the settings app notification section.
I want to have this type of bar at the bottom of the application and whenever a button is clicked new buttons should popup, which one of them when clicked should take me to its connected view
You shouldn't use Popup as control, I'll recommend you to use it like a notification as this is not Apple way of showing controls.
Here is a nice link from boctor iDev recipes.
You can find here custom UITabBar as well Notification
I would suggest you not to try customizing UITabbar. This will go against the normal behavior of UITabbar and Apple may reject your app for tampering with normal behavior.
You can try having a UIView with a set of buttons in them and bring the similar functionality as in your image.
In my iphone app i am implementing UILocalNotification. I want three buttons to be displayed in the alert box, which is displayed after the application closed through the UIlocalNotification invocation automatically. Thanks in advance.
You can't add one more button as in a UIAlertView. Since the notification alert is controlled by the OS, you can't customize it even though they are the same UI element.
In my iPhone app, if the user presses the Home button while the keyboard is up, then returns to the app, the keyboard is still up but my view behind is hidden behind it!
I have some code that normally would rise and lower the view as necessary, but I can't see how to call it in this situation. How can I either detect when Home has been pressed so I can lower the keyboard, or detect when the app has been resumed so that I can rise my view?
Your application delegate is sent the applicationDidEnterBackground: message:
You should perform any tasks relating to adjusting your user interface before this method exits
you can check with some notification and try this
In my app I want to mimic the dock as displayed in Mac.Instead of using tab bar I want to use a dock kind of view in my app so that when a user taps on a dock item a new view is displayed.Is there any code or help availble for the same?
you could use photoshop to create the dock graphic, and individual buttons. upon one of the buttons being pressed have a new view transition in. Apple has sample code of how to transition views in their iPhone sample code.