query with Pointer & lt; _User & gt; in Swift Parse SDK

I have a class called Client and this class have a Pointer<_User>. I'm trying to do that the follow way: query.whereKey("user", equalTo:currentUser) But this way, no data returns in my query. Someone have an idea how can I to do this query

Minimum Cell Height - Autolayout

I have some Autolayout Cells - but would like that they have a minimum height, if the second Label does not contain any text (for example in an form) I thought the easiest way should be to create an additional Constraint with Priority 999 to setup an

How do I delete a tableview line?

I tried a lot but can't kindly help me out of from this situation // // TableViewController.m // jsonplaceholder // // Created by manikandan on 19/04/16. // Copyright (c) 2016 manikandan. All rights reserved. // #import "TableViewController.h" #

UITableViewCell changes the height

I want to change height of the touched row in table view (so it expands): func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { let cell = tableView.cellForRowAtIndexPath(indexPath) as! CustomTableViewCell if let cu

Parsé JSON in NSArray in Swift

i have an json data. i can get all items as string or dictionary, but i couldn't get "payments" item as array.. i want to get datas from "payments" and to convert NSDictionary i tried a few ways but i didn't make it. That is my JSON da

Angular problem with ng-blur on iPhone / iPad

I use AngularJS 1.4.7 I have editable input. If we focus on input and after click outside of this input field, script will do function "save()" in ng-blur. Everything work correctly, but on iPhone 5/6 and iPad don't work (not execute anything in

Swift: filter dictionary

i am trying to filter a dictionary in swift: var data: [String: String] = [:] data = data.filter { $0.1 == "Test" } the filter code above compiles under swift 2 but yields the following error: Cannot assign a value of type '[(String, String)]' t

Why does not my AVAudioPlayer work?

My goal is to download a .mp3 file, and keep its bytes in memory, and have a player play it. I do not want to store the file on the device. I download the file as such: +(NSData*) downloadFile:(NSString*) urlString { NSURL *url = [NSURL URLWithString

AVAsset does not recognize NSURL - Crashing - iOS

I am making an iOS app. One of its features is that it can save record and save audio files. In order to save the URL's of the recorded audio files, I storing them in NSUserDefaults as filePaths like so: file:///var/mobile/Containers/Data/Application

UISearchBar is not visible until scrolling down

I added a UISearchBar programmatically to my tableHeaderView but it doesn't show on view load. There's just a blank space above my table content. When I scroll down a little bit, it appears. I changed the background color of the tableHeaderView to se

Can I get an email id from the Facebook application?

Can an application check if anybody is logged into Facebook application in mobile ,if logged in get the user email Id from that and use it in their application?To get a logged in users email address, you would have to authenticate with the API and th

NSUserDefaults setObject: nil vs. setNilValueForKey

My app crashes whenever I try the following line: [[NSUserDefaults standardUserDefaults] setNilValueForKey:@"my_key"]; with this error: 'NSInvalidArgumentException', reason: '[<NSUserDefaults 0x7a2423d0> setNilValueForKey]: could not set n

Change the frame of a UIView and update the cornerRadius

In my app I am using UIView subclasses to display all kinds of information. I want this views to appear round, so I set the cornerRadius on the views layer to self.bounds.size.width / 2. This works as expected, until I try to animate them. I animate

UITapGeatureRecogniser does not work on 2 labels

I am trying to use two TapGestures on two labels, but it always shows the result of last one TapGesture. My code is as follows: [write_review_label addGestureRecognizer:[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(open_view:)]]

Adjust one-hour NSDate for daylight saving time

My app uses a feed from localendar.com to create a tableview of upcoming events. The issue though, is that the feeds from localendar do not account for DST, so they end up showing the pubDate of the feed as 1 hour later than the event actually starts

UITextField back from UISearchBar

How to resign a UITextField of UISearchBar? I tried with the below code UIView * subView; NSArray * subViews = [self.searchBar subviews]; for(subView in subViews) { if( [subView isKindOfClass:[UITextField class]] ) { ((UITextField*)subView).delegate=

Disable the keyboard when

When the user clicks on a UITextField I am showing a UIDatePicker for the input with the code below. But when i do this the datepicker and the normal text keyboard show at the same time. How would i disable the keyboard from displaying? - (IBAction)s

Memory problem in an iPad application

In our application we are display list of images in UIScrollView. And all image are in HD. So when we are load that page 2-3 times then application will crash. Because of the memory issue. Please give me suggestion what am i do ? Thanks in advance.De

Basic deduction, self-regulatory issue

retain and autorelease questions. // A UIView *temp = [[UIView alloc] init]; myView = temp; [temp release]; // B myView = [[UIView alloc] init]; Do the two codes have no differences? NSString *str = [NSString stringWithString:@"Hello"]; NSString