Uploading Progress bar in menu bar - osx application - objective-c

I would like to implement the progress with floating from 0% to 100 % and the estimation of upload time.
I have tried with the menu bar controller example. But it doesn't help to implement the floating progress bar in the panel view controller.
Please check the below image for my implementation. When i click on (W) icon in menu bar, table is loading and show the upload progress bar. When the uploading is moving to next step. How to reload the table for every 1 sec or 2 sec without the event click.. ? When user click on the icon the progress should move continuously.
Looking forward for ideas or the sample code.

The below link helps to fix the issue :
Force Reload Table View
To reload the table view, used NSTimer frequently to update the progress bar.

Related

How to handle iOS status bar height change during active call in React Native?

When on a call the status bar in iOS changes height. The larger status bar causes the TabBarIOS in my RN iOS app to be partly pushed off the bottom of the screen. Additionally, when switching tabs, the new tab displayed is first displayed with the middle missing, as if the top half of the screen is offset down for the larger status bar, but the bottom half isn't, and the discrepancy is handled by an overlap in the center. Is anyone else seeing this, and if so, have a solution?
Can You provide some code snippet to see what exactly is going in there ?
Additionally you can call the StatusBar to display the notification bar contents and Add a view of height 64pt that is Standard with ios10 design standards.

iOS 7, status bar and navigation bar: hiding or sliding with side panels as Reeder does

I suppose this is an old one. I have a sliding panel (JASidePanel) with a menu and I want to hide or slide the status bar while showing the menu. So, I have two options:
Hide the status bar and keep the height of my navigation bar.
Or slide the status bar with the panel.
I see these two options are possible. The first one via swizzling of the sizeToFit of the UINavigationBar (link). The second one via a snapshot of the screen before animating the panel.
But I see Reeder, that takes the second option and brings it to another level: the panel is not really a screenshot, is the actual view of the panel so the status bar is slide but continues being updated, also the panel does!
So, I have a couple of questions: how is the Reeder solution possible? And the second one, is it secure to perform method swizzling? Could it be rejected by Apple?
Thank you.
Finally I implemented the first solution as shown in this link.

How to make the status bar translucent in iOS 7?

In my app, I have some webviews. A transparent status bar doesn't look good for full screen webview. I want to make the status bar TRANSLUCENT, just like the game center.
I notice that the status bar would be drawn translucent if there is a navigation bar under it. But I want a translucent status bar BY ITSELF.
Is there any way to do this?
If you look at the Human Interface Guidelines section about the Status Bar it recommends (emphasis mine on the section most related to your question):
Prevent scrolling content from showing through the status bar. As
users scroll, you don’t want them to see a confusing mix of app
content and status bar items in the status bar area. To give users the
impression of spaciousness while still ensuring maximum readability,
make sure the status bar has a background that obscures the content
behind it. Here are a few ways to keep scrolling content from showing
through the status bar:
Use a navigation controller to display content. A navigation controller automatically displays a status bar background and it ensures that its content views don’t appear behind the status bar. (To learn more about navigation controllers, see “Navigation
Controllers”.)
Create a nondistracting custom image—such as a gradient—and display it behind the status bar. To ensure that the image stays behind the status bar, you could use a view controller to keep the image above a scrolling view or you could use a scrolling view to keep it pinned to the top.
Position content to avoid the status bar area (that is, the area defined by the app’s statusBarFrame property). If you do this, you should use the window’s background color to provide a solid color behind the status bar.
As the status bar is totally transparent and any content can go on top of it, I just create an empty UIToolbar that is 20px height which just looks like a perfect translucent background for the status bar.
This is not an ultimate solution, but it really helps and it is very easy to implement when you don't need a real tool bar.
Thanks to Apple that they do not provide an option to set the status bar from transparent to translucent.
In Xcode 6, create top, bottom, left, right constrains and set the
- constants to 0
- priorities to 749.
- Don't forget to UNCHECK the "Constrain to margins" check box.
How to create constrains?
At the bottom right of your storyboard window, there's four buttons. The second from your left has the constrains. Please google about constrains in Xcode 6 since it's a kinda new feature.
Hope this help,

Modal View Controller Slides Underneath Status Bar in iOS 7

When I use a modal view controller in iOS7 it slides underneath the status bar. Is there a way to stop that from happening without having to adjust the view based on what os it's running on? You can see that the Close button is pushed up underneath the Carrier text on the status bar. Is there any way to get the modal view controller to recognize my status bar?
Have you seen this? UINavigationBar/Status Bar issue in IOS7
There are a couple of things you can try, but I think what you're looking for is here, in the iOS7 Transition Guide: https://developer.apple.com/library/ios/documentation/userexperience/conceptual/TransitionGuide/AppearanceCustomization.html

Navigation bar resetting its frame

I have a TabBar which has been created programmatically. In the view controllers of this tab bar I am trying to reduce the size of navigation bar using -
"self.navigationController.navigationBar.frame = CGRectMake(0, 20, 320, 30);"
For the first time the view controller loads the navigation bar is displayed with the dimensions specified by me, but after that it automatically resets its dimensions.
An example having this issue can be downloaded from http://dl.dropbox.com/u/2647092/iPhone_tabbar_example.zip
To replicate this issue in this example follow these steps -
open and run the project
in the simulator click on Tab1 then click on Tab2 again click on Tab1 the Navigation bar of Tab1 would be resized to its default dimension
Is there any thing wrong I am doing in this case or is there an alternative method to do this?
Please let me know.
Thanks,
Yogesh
Got the solution to this problem...instead of resizing the navigation bar in viewWillAppear resize it in the viewDidAppear