Creating a circular progress bar around an image in swift

I am trying to create a circular progress bar around an image as shown in the screenshot below. So far I have managed to create a round image with a green border using the code below: self.image.layer.cornerRadius = self.image.frame.size.width / 2 se

How to create a UIImageView extension rounded by itself

I've been experiencing an annoying problem recently. Assume I want to use an image in multiple places across my application, and everywhere it has to be rounded so as to be a circle. Because I want my code to be clean, I think that this functionality

How to define UIPageControl with the image in iOS8 Objective c?

I want to set UIPageControl with images in the place of dots. I implemented the following code but it always crashing.Please help me. -(void)updateDots { for (int i=0; i<[_pageControl.subviews count]; i++) { UIImageView *dot = [_pageControl.subviews

Pass UIButton by reference

Hi I am new to iOS programming. I am writing a iOS application and implemented few UIButtons. I have to set the properties for these buttons. So instead of writing repetitive code for each button, I implemented separate method to basically set the pr

Implement UITabViewController with JASidePanelViewController

I am implementingJASidePanel withUITabViewController but I have some problem to implement. Currently I have Category view controller with UITabView After sliding shows category like this but I want to slide only oneviewcontroller not UITabViewControl

how to fix on released objects

NSZombie detected that one of the objected is over released in my app and that is causing the app to crash every time when a button is pressed. However, after inspecting the source code of where the over release happens, I couldn't see any obvious co

New thread + NSManagedObjectContext

I'm trying to separate my application work when there is a bigger work to do to optimize performance. My problem is about a NSManagedObjectContext used in another thread than the main one. I'm calling: [NSThread detachNewThreadSelector:@selector(test

Can we hide the status bar?

This question already has an answer here: Cannot hide status bar in iOS7 25 answers Not just the bar but the texts the battery sign etc in IOS [UIApplication sharedApplication].statusBarHidden=hidden; Don't seem to work at all. -(BOOL)prefersStatusBa

Synchronization with the Core audio thread

I am using the render callback of the ioUnit to store the audio data into a circular buffer: OSStatus ioUnitRenderCallback( void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNum

Could not parse basic JSON - iOS

I have an iOS application which downloads and parses a JSON file from the Facebook API. However, whenever I try to parse it my app crashes and I get this error: 2013-11-06 15:31:41.473 JSONTESTER[10881:70b] -[__NSCFDictionary objectAtIndex:]: unrecog

Resize proportionally between iphone 4 and 5 screens with XCode

I am trying to use auto layout in x code to correctly resize my view to switch between iphone 4 and 5. I have a similar problem as the one presented in the picture. Let's consider the UILabel at the bottom is fixed. I want the top UILabel to be at th

UIButton -setTitle: forState: does not seem to work

I'm trying to dynamically update the title of an IBOutletCollection of UIButtons. I expect the title to be set to the letter 'S' when selected and the text "D|S" when disabled and selected. It wasn't working, so I printed out the titleForState:s

Detect that a WiFi network requires authentication

I am writing an iOS app that used a HTTP web service to get its data. If a user is connected to a WiFi network that requires the user login using some kind of web form (think Starbucks or Wi-Fi at airports) then my app fails with an error 500. I noti

Access to iOS 6 new APIs for camera exposure and shutter speed

On Apple's iOS 6.0 feature page, it used to say Take advantage of the built-in camera's advanced features. New APIs let you control focus, exposure, and region of interest. You can also access and display faces with face detection APIs, and leverage

Save data to iPhone for a single user

I was wondering, if I had maybe 20 or so objects (numbers and strings) that i wanted saved for my app, would it be best to do this in a plist? or NSUserDefaults? or would I need to implement coredata?I would use NSUserDefaults, if you only have to sa

Detect slip with your finger down

I've got a Scroll View with Paging View controller. The interface looks like this: @interface ScrollViewWithPagingViewController : UIViewController <UIScrollViewDelegate> { UIScrollView *scrollView; UIPageControl *pageControl; NSMutableArray *viewCo

Removing iOS SDKs from OSX

This isn't a programming question but it's about the SDKs and the IDE. I've accumulated a ton of different XCode installs over the past couple of years and now my hard drive is nearly full. With each SDK clocking in at around 5 gigs, and my storage s