How can I create one of these small red round delete buttons like in the safari app (at the top and left of a tab)?
Is it a default UIButton with an image or an pre-defined button of the iOS SDK?
I got it somewhere
http://img37.imageshack.us/img37/6804/buttoniry.png
I think there is no such pre-defined button of the iOS SDK
Related
Q: how to position icon to the left side of the text in UIApplicationShortcutItems ?
Observation: i was adding Home Screen Quick Action to my app and my custom icon is on the right side of the Text.
I looked into multiple big apps like facebook, snapchat etc and observe systematically left side icon.
Apple documentation and Official App always have right aligned icons.
I don't think you can choose the position of the icon:
Here's the answer from an Apple Staff member:
The icon position is not configurable, and iOS will swap sides of the
icon depending on where the app icon is placed. For example, if the
app icon on the left side of the screen the icon in the shortcut menu
will appear on the left, but if the app is on the right side of the
screen then the shortcut menu items will be on the right. In general,
the shortcut menu icons will be positioned so that they are directly
above or below the app's icon.
From: https://forums.developer.apple.com/thread/20568
I have seen this question asked before however I haven't found a response that seems to work too well.
I am new to Xcode and am trying to make an app for iOS where a user can go into the settings tab and choose a theme such as Red where the buttons, background etc. can change to a certain color. Is there a way to do this by referencing the attributes tab and then telling Xcode to change the button property if the settings button is pressed.
Also if the background is using an image is there a way to change that image with another one if a button is pressed.
I am using Xcode 8.2 and using Swift 3.
I am trying to add google login to my iOS application. The app will go to my nodejs server (using passport to hit google to login). Long story short I do not need to use the Google iOS sdk for login as I am not going from my to directly to google.
But I do need a correctly styled google signin button. I found the branding guidelines here:
https://developers.google.com/+/branding-guidelines?hl=en
And they have a download for the iOS icons and a sketch file. The problem I am running into how do I use that button image and have it scale correctly based on constraints? IE if I set the image as the background and size the button to be whatever size I want in my view the G+ will also stretch.
But if I don't set as a background I cannot make the button the correct width.
Is there a way to make the button whatever width I want without stretching the G+ logo?
Next up would be how to get Roboto Text in there as well...
Try Image Slicing. Below is the steps:
Select the image you add in the asset catalog.
Choose Horizontel in Slicing section of the Attributes Inspecter.
Input 35 for Left field, input 5 for Right field. Below is what the slicing looks like:
Set the image as a button background in Storyboard or nib.
Now resize the button, the logo will not be streched.
I'm working on an app which has buttons at the bottom of the screen(looks like tab bar). I found that if I enable the access to control center in app, there will be a notable delay between tapping on the buttons and the highlighted image showing. In fact the highlighted image will never show if I do not hold on the touch for at least about 0.5 second. I'm wondering if there is a way to disable the delay even the access of control center in app is ON so that users of my app will know the buttons did have been tapped. Any hint will be appreciated.
I have xcode 4 and I see no way of launching library from IB. So I cannot add image buttons to my app. apple-shift-L didnt work and I dont see a tools menu option.
Anyway around this?
Can I programmatically add buttons?
The library in Xcode 4 is tricky to find and occasionally hidden.
In IB mode, make sure the right drawer is open, then look at the very bottom of it. There should be a small area containing the Library. If not, there should be 4 buttons at the very bottom of the right drawer. In order: "Piece of Paper", "Brackets", "Box", "Movie". Click the box to open the Library. Then drag to resize it to a humane height.
They moved it to View->Utilities->Object Library