Combining two strings in Objective-C in XCode. If you’re familiar with C# the string format is the easiest way to go. In Objective-C it’s stringWithFormat. Here the %@ is the string you’ll add afterwards in the parameters. As you might have notes you can easily add text in between each variable string. Objective-C documentation for
Tag: Mac
Code sign wants to sign using key Allow button not working
A rather stupid error without any indication on what’s wrong. The button Allow always and Allow doesnt work for “Code sign wants to sign using key”. You can press it but does not do anything and the system doesn’t say not allowed or some sort. This happened when I deployed from Visual Studio using Xamarin
How to unsubscribe Apple Music
To unsubscribe from Apple Music do the following: Open Apple Music app on your iphone/ipad Hit the account icon in the top left corner Choose “View Apple ID” Choose “Manage” under subscriptions Click the switch to “Off” under auto renewal
Mac No Display On Targus DisplayLink
Updated to Yosemite, now on 10.10.1 and the external display disappeared. It’s running through a targus dockingstation displaylink. There is multiple post about the issue on dipslayLink forum, some users got it to work: http://www.displaylink.org/forum/forumdisplay.php?f=30/ Tried both running the lastest DisplayLink 2.2 and the 2.3Beta, none of them work for MacBook Air 2013. Ended trying installing
Mac Disable the Dock Jumping Bouncing
Let’s face it, the jumping/bouncing of an icon is annoying. Open the terminal “Applications -> Utilities -> Terminal” and enter the following: defaults write com.apple.dock no-bouncing -bool TRUE && killall Dock
Stop iPhoto From Automatically Opening
iPhoto automatically opens up when connecting your iPhone og iPad. The issue is that it’s not iPhoto itself but “Image Capture” that opens it up. Open Image Capture. Locate devices and click on button in the bottom left, icon with an arrow inside a box. Select “Connecting this iPhone opens: ” select No application.
Reset Mac Failed
Was going to hard reset a MacBook Air from 2010, the issue could probably happen on all Mac though. This is what was done: So by holding down the alt-key (option-key) and the powerbutton while the mac is shut down you’ll get into a recovery state for both resetting and using time travel. In this
OS X Yosemite Prevent Fullscreen From Zoom Button
Apple has changed the functionality of the zoom button for every window in OS X Yosemite, the third and green button. It’s not a zoom button anymore (nor a maximize as in MS Windows), it is now a fullscreen. Which at first (and second time) is annoying and confusing. There doesn’t seem to be a way
Xcode UIToolbar Set Height Is Locked
The object in Xcode: UIToolbar is locked when using the Interface Builder at 44 px tall. You can easily change this programmably by using setFrame [myToolbar setFrame:CGRectMake(0,50,320,30)]; However you are able to do this in the Interface Builder as well by creating a constraints for the UIToolbar. Select the toolbar element and choose Editor >
No Sound After Sleep On Mac
This problem started occurring around 10.9.0, might have been in earlier version too, but it still exist now in 10.9.2. The sound disappear on the mac after you wake it from sleep mode, but it’s not consistent, there can go days without it happening. There doesn’t seem to be a specific time interval it needs to