Home >

objective c

  • when we scroll tableview then images in table changes and override, how to manage this?March 9

    -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellIdentifier= @"Identifier"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier]; UIImage

  • something different about NSURLSessionDelegate and NSURLSessionTaskDelegate in AFURLSessionManagerMarch 8

    pragma mark - NSURLSessionDelegate -(void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))comp

  • Writable Atomic property - cannot pair a synthesized getter with a user defined setterJanuary 10

    I have defined an atomic attributed property in my application but now find a new to override the setter so as to update some UI element whenever it is changed. However, I get the aforementioned warning. Is there a way to nullify this warning or if n

  • Delete tableview cell crash swiftNovember 10

    Hello i wanna delete tableview cell following error occur Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of sections. The number of sections contained in the table view after the

  • dynamic cells in UICollectionView keep rearrangingNovember 8

    I am using CHTCollectionviewFlowOut. Everything I code is fine but while scrolling collection view, changes cell size and content sometimes. I am using custom collection cell class to display labels and images. Cell size depends on size of image whic

  • custom delegate getting nil in swift , not getting call back [on hold]August 2

    I am trying to create a custom delegate using TLPhotoControllerDelegate in swift. However the doSomething method is not being called through callback. It seems that delegate?. TLPhotoControllerDelegate() does not fire to the class B TLPhotoController

  • UIControl - detect what type of action actually occurredFebruary 17

    I have a custom UIControl subclass with an action method callback. I want to display the value of the control element while it is being adjusted on a UILabel and then I want the label to become hidden when the user stops adjusted the control. Therefo

  • App crash during displaying remote notificationFebruary 17

    I am trying to display a banner using toast(https://github.com/scalessec/Toast) if the app receives a notification while its on the foreground. The simple case works fine without any problems.. - (void)application:(UIApplication *)application didRece

  • iOS how to properly retrieve a credential from NSURLCredentialStorage?February 17

    I'm running into an issue where I can't retrieve a credential from NSURLCredentialStorage, even if I try this immediately after saving. The credential is properly formatted and is accepted by the server, it is set to be permanent. I have debug code t

  • Section header view that changes visibility with scrollFebruary 17

    Section header view that changes visibility with scroll I have a tableview that features section headers, I'm able to access the section header views when they appear by adding a UIView property and assigning it to each section header view: - (UIView

  • Custom instagram login viewFebruary 17

    I am building an app that requires signing up with Instagram. I can use the traditional web view for the user to enter their login information but I find it ugly. I want to have custom text fields with a custom login button. How can I achieve this? I

  • How to swizzle methods with identical names (NSNotificationCenter postNotificationName)?February 17

    I am fairly new to method swizzling, and I'd like to use it to troubleshoot a problem I am having that is likely the result of an errant call to NSNotificationCenter. To do this I want to swizzle to log out each call to NSNotificationCenter's postNot

  • UIView layout in storyboard with rotations in code, how to set proper constraints

    UIView layout in storyboard with rotations in code, how to set proper constraintsFebruary 17

    I would like each arrow to point to the outside. The top one is correct but the other ones are not. It seems that you cannot rotate them in the storyboard, so I will have to rotate them in code. My question is what to do with the constraints? If I se

  • Matching MapKit Places with Facebook PlacesFebruary 17

    I am saving photos with city names to server in my application. Firstly, I am getting city names with MapKit, by using latitude and longitude, and then saving photo and city name to database. Later when user want to search a photo, he/she writes the

  • Map not loading when using ViewDidAppear and didChangeAuthorizationStatusFebruary 17

    I'm getting the standard requestWhenInUseAuthorization error but the map loads if I take out the viewDidAppear method. And as you can see in the didChangeAuthorizationStatus method when the user refuses authorization I'm using an additional action bu

  • Writing an NSCache to disk with NSKeyedArchiverFebruary 17

    I need a dictionary to hold a limited number of objects that need to be created with an internet connection and cache them so they remain available when there's no internet connection. NSCache seems ideal since I can specify a limit or it will automa

  • Obj-C function translation to Swift 2 functionFebruary 17

    I've done my best to transalte this code but something is still wrong. Can some please help and also explain which Obj-C code correlates to the Swift code? Thanks. Obj-C //NTRMainViewConroller.m - (IBAction)unwindFromModalViewController:(UIStoryboard

  • How to Make a SIP/VoIP Call from the App? are there any Libraries/SDK's available?February 17

    I'd like to develop & submit a native app with VoIP/SIP concept using latest iOS SDK. In my App, I have to implement the voice call(outbound call) and chat option by using SIP/VoIP concept. Are there any SIP/VoIP SDK/Libraries for iOS (Paid or free)

  • cannot distribute for adhoc, WWDR is current

    cannot distribute for adhoc, WWDR is currentFebruary 17

    Just a couple of days ago everything was perfect, now when I try to build for ad hoc distribution I get this: Also it adds 3 profiles XC Ad Hoc:... each time I try, and it keeps growing: I checked all my certificates etc nothing changed, besides that

  • Set TopLeft & bottomLeft radius of a UIButton | iOS

    Set TopLeft & bottomLeft radius of a UIButton | iOSFebruary 17

    I want to set the Top/Bottom Left corner radius of UIButton. How can i achieve this? If i use button.layer.cornerRadius, it'll set all the corners. I've tried using UIBazierPath, but probably i'm doing something wrong and the button is not appearing

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.336 s.