ios7

How to move legal link in mkmapview IOS 7

依然范特西╮ 提交于 2019-12-26 03:08:08
问题 as all we know Apple, we always need to change something for each update. Did somebody solve the moving problem for map legal link? I tried many ways to control legal label but, just it can be hidden? what else I can do? thanks in advance 回答1: You need to change bottomLayoutGuide for your UIViewController. Create a class with following code: MapLayoutGuide.h @interface MapLayoutGuide : NSObject <UILayoutSupport> -(id)initWithLength:(CGFloat)length; @end MapLayoutGuide.m #import

Concatenate two Base64 encoded strings

点点圈 提交于 2019-12-25 18:21:32
问题 I want to decode two Base64 encoded strings and combine them to make one 128 bit string. I am able to decode the Base64 encoded strings. Can some one guide me on how to combine these two decoded strings? This is the code I used for decoding the two encoded strings. NSData *decodedData_contentKey = [[NSData alloc] initWithBase64EncodedString:str_content options:0]; NSString *decodedString_contentKey = [[NSString alloc] initWithData:decodedData_contentKey encoding:NSUTF8StringEncoding]; NSLog(@

Take photo without camera application [duplicate]

北慕城南 提交于 2019-12-25 17:45:31
问题 This question already has answers here : Take a picture on iPhone without showing controls (2 answers) Closed 5 years ago . I have a requirement whereby a photo needs to be taken from the camera without the user actually seeing it being taken. Is it possible for an iOS application to take a photo without actually opening the photo app? 回答1: From your brief description and constraints, of course it's possible. My assumptions are: That you want to do this from your own app, and not somehow

How to fix translucent toolbar screenshot showing as black in iOS 7?

别说谁变了你拦得住时间么 提交于 2019-12-25 17:00:25
问题 My top and bottom toolbars are showing as black when in the app they show as light gray. I'm assuming it may have something to do with the default 'translucency checkbox' I found in the .storyboard, attributes inspector of the toolbar? I'm using a UIActivityViewController to shoot this image out in an email. Here's the code for grabbing the screenshot: // Grab a screenshot UIGraphicsBeginImageContext(self.view.bounds.size); [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];

UITableView has randomly disappearing cells

眉间皱痕 提交于 2019-12-25 16:55:52
问题 I have a fairly simple UITableView which uses an NSArray of flight bookings, and displays one cell per booking. Recently customers have raised an issue (which I can only very occasionally reproduce) whereby some of the cells are completely hidden. The space for them is there, but there's just a gap where they should be. The table has a header and footer so I can see the gaps (it's not just that there are less elements). Example screenshot here: http://myflightsapp.com/images/missing-cells.png

When close view that started locations service notification error occure

情到浓时终转凉″ 提交于 2019-12-25 16:50:05
问题 I have created small app that use this project as it's core: https://github.com/dsdavids/TTLocationHandler And it worked fine until I have moved stating location services from another view in app. What app is doing: When it is started you can tap on START button and ( in emulator locations must be enabled ) on the map route of movement is displayed as you move. The problem came when I moved starting action in a second view. In that second view I just want to start location service and close

iOS7 - Map view pin do not appear until screen is touched

感情迁移 提交于 2019-12-25 16:46:34
问题 In my app, I download a set of point from a web service using json. Actualizing the app to iOS7, I am experimenting that problem: the locations are downloaded but pins on the map are not painted until user touchs and "moves" the map. Then they appear and all work as in iOS6. How can I correct that behavior? EDIT: AddAnnotation is called at the end of a method that receive data, parse the json and pass them to mylocaction object: - (void)plotBarPosition:(NSString *)data_string { // Parse the

How to assign result of NSURLSession to a variable in same method?

拜拜、爱过 提交于 2019-12-25 16:45:12
问题 To say I'm new to Objective-C would be a huge understatement. I'm primarily a Ruby/Rails developer and it completely spoiled me when it comes to OOP & programming in general. After getting tired of reading tutorials, I decided to try to use NSRULSession to hit one of my Rails apps (an Elder Scrolls Online skill planner) & display some of the JSON response on my iOS app. Delegates make no sense, I'm not sure how to break this functionality up into methods, etc, so I thought I'd keep it simple

Get object value by property reference not working on iOS

故事扮演 提交于 2019-12-25 15:16:53
问题 This is my object: var charsObj = {"drive":{"status":"inprogress","data":"some data","history":"the text of my history"}} function getNote(x) { if ( x in charsObj) { console.log(charsObj[x]) } else { console.log('nothing', charsObj[x]) } } if I call getNote('drive') it returns my object value as expected EXCEPT iOS returns 'nothing', undefined . How do I get this to work on iOS? 来源: https://stackoverflow.com/questions/26024488/get-object-value-by-property-reference-not-working-on-ios

Universal iOS app - UIButton and UITableView sizes

◇◆丶佛笑我妖孽 提交于 2019-12-25 09:38:34
问题 I'm developing my first universal iOS app with XCode 5.0.2 and iOS 7, and I have some questions on the screen size differences between iPhone and iPad (including Mini). If the app contains UIButton s with custom .png images, do I need to increase the size of the UIButton s along with bigger size images when developing for iPad?. I'm already half done with the iPhone app and not using storyboards but using IB to create NIBs. I tried to use the same iPhone UIButton size on the iPad NIB and it