Tag: objective c

Error: ld: library not found for -lPods with CocoaPods

after i installed DTCoreText (https://github.com/Cocoanetics/DTCoreText) with Cocoapods i always get an error when i try to run the simulator or device! ld: warning: directory not found for option ‘-L/Users/example/Desktop/ios/Pods/build/Release-iphoneos’ ld: warning: directory not found for option ‘-L/Users/example/Desktop/ios/Pods/build/Debug-iphoneos’ ld: library not found for -lPods-example clang: error: linker command failed with exit code 1 (use -v to […]

iOS 9 “fbauth2” missing from Info.plist

FBSDKLog: fbauth2 is missing from your Info.plist under LSApplicationQueriesSchemes and is required for iOS 9.0 Any idea what this is? I have added it in my plist but did not work.

Page Curl on iOS

I look around for similar posts but didn’t find a solution. I’m looking for a simple page turn animation (without finger tracking) like this: http://www.youtube.com/watch?v=_vOYvaNhSHw Is it possible to create or license it? Many thanks for your help.

What does the text inside parentheses in @interface and @implementation directives mean?

I’ve got a very basic question about some sample code from Apple. In the .m file, the class declarations look like this: @interface MyMovieViewController (OverlayView) […] @end @interface MyMovieViewController (ViewController) […] @end @implementation MyMovieViewController(ViewController) […] @end @implementation MyMovieViewController (OverlayView) […] @end @implementation MyMovieViewController […] @end Full code here. It seems like the stuff inside parentheses […]

iOS: Compare two NSDate-s without time portion

I want to compare two dates: date1 and date2 2011-06-06 12:59:48.994 Project[419:707] firstDate:2011-06-06 10:59:21 +0000 2011-06-06 12:59:49.004 Project[419:707] selectedData:2011-06-06 10:59:17 +0000 but these dates have different time and when I use NSOrderedSame it don’t work fine, how can I solve? my code: NSDate *firstDate = [[appDelegate.project objectAtIndex:i]objectAtIndex:3]; NSDate *secondDate = [[appDelegate.project objectAtIndex:i]objectAtIndex:4]; NSCalendar *calendar = […]

is there a way to get directions in mkmapview using a built in apple API?

I know google maps are known to be the best maps out there, but i dont want to have to download a bunch of extra libraries and all that. I’d prefer to do something quick and simple to get a quick route from point A to B and be done with it. Is there a […]

NSHTTPCookieStorage state not saved on app exit. Any definitive knowledge/documentation out there?

Struggling with this problem and loath to implement a custom cookie management system. It appears some hidden level of iOS’s implementation of HTTP fails to manage sessionless cookies properly. Any time an HTTP response sets or deletes a cookie, immediate inspection of NSHTTPCookieStorage cookies will yield the expected results and indicate the correct sessionOnly value. […]

iOS ScrollView needs constraint for y position or height

-ViewController –View —ScrollView (Top,Bottom,Leading,Trailing spaces to superview set to 0) —-ContentView (Top,Bottom,Leading,Trailing spaces to superview set to 0, Width equals with View (ViewController’s child)) —–Label1 —–etc… If i set a specific height constraint for my content view (e.g. 1000) the ScrollView works fine, but i got a static ContentView of 1000, which is not my […]

Disable Dictation button on the keyboard of iPhone 4S / new iPad

Ours is a health care app. We have a HIPAA-compliant speech recognizer in the app through which all the dictation can take place. The hospitals don’t want physicians to accidentally start speaking to the Nuance Dragon server which is not HIPAA-compliant. So, I was looking for ways I could supress the dictation key on the […]

Animate text change in UILabel

I’m setting a new text value to a UILabel. Currently, the new text appears just fine. However, I’d like to add some animation when the new text appears. I’m wondering what I can do to animate the appearance of the new text.