Search

results found tagged with search options user 1921348

iOS is the mobile operating system running on the Apple iPhone, iPod touch, and iPad. Use this tag [ios] for questions related to programming on the iOS platform. Use the related tags [objective-c] and [swift] for issues specific to those programming languages.

2
votes
The reason for crash is that you increment i, perform some operations with it, and only then check if it is not out of range. To get rid of this error just move i +=1 to the end of your closure.But …
answered Mar 15 by mag_zbc
1
vote
The answer by Puneet Sharma is good, but it has a downside: it requires Xcode 9. However, what you want is possible in earlier version as well, using symbolic breakpointsIt works, but I noticed it …
answered Oct 5 '17 by mag_zbc
0
votes
If your framework is written in Swift, then use Access Levels - public, open, internal, file-private or private - documentation. You probably want to use internalIf your framework is written in Obje …
answered Jul 27 '17 by mag_zbc
3
votes
You can't show several images in one ImageView. You are iterating through your images and assigning them to a single image view. That way each image replaces the previous one, so the image you see is …
answered Feb 8 by mag_zbc
4
votes
It has indeed been changed in Swift 3 $0.news.thumbUrl=request?.url?.absoluteString
answered Sep 7 '17 by mag_zbc
0
votes
Short answer: no. Best you can get is information on when the device was turned on #include <sys/sysctl.h>struct timeval boottime;int mib[2]={CTL_KERN, KERN_BOOTTIME};size_t size=sizeof(bo …
answered Aug 4 '17 by mag_zbc
2
votes
| is not a character allowed in URL. Try to percent escape the URL string let url=URL(string:"https://maps.googleapis.com/maps/api/directions/json?origin=colombo&destination=kandy&waypoints=opt …
answered Aug 4 '17 by mag_zbc
2
votes
Are those supposed to key-value pairs? If so, better use NSDictionary: NSDictionary *dictionary=@{ @"1" : @"chevy", @"2" : @"ford", @"3" : @"toyota"};
answered Jul 7 '17 by mag_zbc
1
vote
If you want it to work regardless of your device's regional settings, you need to set the locale property of your DateFormatterlet dateFormatter=DateFormatter()dateFormatter.locale=Locale(ident …
answered Apr 12 by mag_zbc
1
vote
Issue it here:if let JSON=response.result.value as! [[String : Any]]!First: if you're using optional chaining (if let) dont use force cast (as! and [[String : Any]]!).Secondly, your JSON is not …
answered Jul 13 '17 by mag_zbc
1
vote
Insert a subview in your button let circleFrame=CGRect(x: 0, y: 0, width: circleDimension, height: circleDimension)let circle=UIView(frame: circleFrame)circle.backgroundColor=UIColor.clear…
answered Oct 6 '17 by mag_zbc
1
vote
0answers
I have a problem with launching media from iOS app. When I call mediaControlChannel loadMedia:, nothing happens on receiver app - no loading bar appears, but neither of GCKMediaControlChannelDelegate … media or some of the parameters are incorrect, so I used them in Google's example iOS app, but it all works fine there.Before trying to load media I check if I'm connected to device and to the …
asked Feb 17 '15 by mag_zbc
1
vote
From documentation on becomeFirstResponder(): Never call this method on a view that is not part of an active viewhierarchy.So calling it from viewDidLoad is definitelly not a good idea. Tr …
answered Jul 13 '17 by mag_zbc
1
vote
1answer
I am following this tutorial to wrap my static library in a framework. The problem appears at the very last phase - running script in "Aggregate" target. I am getting an error:libtool: can't locate …
asked Jul 17 '17 by mag_zbc
0
votes
The reason for this seems to be a bug in iOS. The CAShapeLayer has its bounds set properly self.circleLayer.bounds=self.bounds;Upon inspecting it, the origin and size of the layer is fine …
answered Sep 5 '17 by mag_zbc

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,