Questions tagged ios

Explore the latest questions and answers asked by our top developers.

How can I get the iOS 7 default blue color programmatically?

I’m creating custom elements in my app and want to match the look and feel of the new iOS. iOS 7 introduced to us a very common lighter blue color, the default color or tint for several elements, including the system button, segmented control, etc. They’ve made it easy to select the color using IB, […]

By Joel H
Categorised as colors, ios, ios7, uicolor Tagged , , ,

iOS7 Status Bar like the native weather app

Does anyone know how can I reproduce a similar effect from the native iOS7 weather app? Basically, the status bar inherits the view’s background underneath, but the content doesn’t show up. Also, a 1 pixel line is drawn after the 20 pixels height of the status bar, only if some content is underlayed. Source: Ios7 […]

By DZenBot
Categorised as ios, ios7, iphone, objective-c, statusbar Tagged , , , ,

iOS 7 Navigation Bar text and arrow color

I want to set background for Navigation Bar to be black and all colors inside it to be white. So, I used this code : [[UINavigationBar appearance] setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys: [UIColor whiteColor], NSForegroundColorAttributeName, [UIColor whiteColor], NSForegroundColorAttributeName, [NSValue valueWithUIOffset:UIOffsetMake(0, -1)], NSForegroundColorAttributeName, [UIFont fontWithName:@"Arial-Bold" size:0.0], NSFontAttributeName, nil]]; But back button text color, arrow and bar button have […]

By 1110
Categorised as ios, ios7, iphone, objective-c, uinavigationbar Tagged , , , ,

IOS 7 – How to get the indexPath from button placed in UITableViewCell

I’ve programmatically created a UITableView and added UISwitch to it’s cell accessory view. This is my code for UISwitch in cell accessory view in cellForRowAtIndexPath method. UISwitch *accessorySwitch = [[UISwitch alloc]initWithFrame:CGRectZero]; [accessorySwitch setOn:NO animated:YES]; [accessorySwitch addTarget:self action:@selector(changeSwitch:) forControlEvents:UIControlEventValueChanged]; cell.accessoryView = accessorySwitch; This is the method which is called after the button is clicked. – (void)changeSwitch:(UISwitch […]

By Arun
Categorised as ios, ios7, iphone, uitableview Tagged , , ,

@import vs #import – iOS 7

I am playing around with some of the new iOS 7 features and working with some of the Image Effects as discussed in the WWDC video “Implementing Engaging UI on iOS”. For producing a blur effect within the source code for the session, UIImage was extended via a category which imports UIKit like so: @import […]

By jamdaddy25
Categorised as import, ios, ios7, objective-c Tagged , , ,

How to change Navigation Bar color in iOS 7?

How do I change the Navigation Bar color in iOS 7? Basically I want to achieve something like the Twitter Nav Bar (updated Twitter for iOS7 that is). I embedded-in a nav bar atop a view controller. All I want is to change the nav bar color to light blue along with the utility bar […]

By Patricio Guerra
Categorised as ios, ios7, storyboard, uikit, uinavigationbar Tagged , , , ,

Rendering text in uppercase without changing the backing string? (iOS7 & Text Kit)

My application targets iOS 7 only. I have a UITextView presenting an NSAttributedString. The string represents a document, each paragraph has a number of attributes set on it for styling. Some paragraphs need to be rendered in ALL CAPS, however, the style of the paragraph could be changed by the user to something with regular […]

By James J
Categorised as ios, ios7, textkit, uitextview Tagged , , ,

Remove empty space before cells in UITableView

I am currently trying to put a UITableView in a different location rather than at the top of my view controller. With this said, it is trying to add the header in the top to account for the navigation bar, but this is not needed since I do not have at the top of my […]

By hetelek
Categorised as ios, ios7, objective-c, uitableview Tagged , , ,

Why is there extra padding at the top of my UITableView with style UITableViewStyleGrouped in iOS7

Starting in iOS7, there is additional space at the top of my UITableView‘s which have a style UITableViewStyleGrouped. Here is an example: The tableview starts at the first arrow, there is 35 pixels of unexplained padding, then the green header is a UIView returned by viewForHeaderInSection (where the section is 0). Can anyone explain where […]

By esilver
Categorised as ios, ios7, uitableview Tagged , ,

Button in UITableViewCell not responding under ios 7

I have one tableview and each cell contains one button. It’s working pretty well all iOS versions but 7. I don’t know what’s going on. The cell is constructed in one xib file. Could anyone give me some suggestions? Thanks in advance. Source: Ios7 Questions

By Xavier
Categorised as ios, ios7, uibutton, uitableview Tagged , , ,
1 55 56 57 58

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us