Posts by William Monteiro • 89 points
15 posts
-
0
votes4
answers2455
viewsA: Serial Communication With PHP and Arduino
Use the PHP-Serial link here example : error_reporting(E_ALL); ini_set('display_errors', '1'); include "php_serial.class.php"; $serial = new phpSerial; $serial->deviceSet("/dev/ttyAMA0");…
-
0
votes2
answers74
viewsA: How to recover the html displayed in a Uiwebview with Swift for IOS
in HTML... <html> <body> <input id="myId" type="hidden" value="TextValue"/> </body> </html> in Swift... var id:String =…
-
0
votes3
answers1300
viewsA: Error 400 when calling a. net service in the iOS app - How to resolve?
no. h NSMutableData *myData; no . m NSString *jsonPost = [NSString stringWithFormat:@""]; NSURL *url = [NSURL URLWithString:@"http://www.cgsapi.com/CGSWebService.asmx"]; NSData *postData = [jsonPost…
-
1
votes1
answer58
viewsA: How do I check if a product has already been purchased by the user on iOS?
try like this: - (void) verificaItensComprados { [[SKPaymentQueue defaultQueue] restoreCompletedTransactions]; }//chame essa funçao //no delegate da funcao - (void)…
-
0
votes1
answer58
viewsA: call the properties of a Tableviewcell in a Viewcontroller
you can try this on cellForRowAtIndexPath: cell.Label-em-questao.tag = 789; [self sendCELL:cell]; then you recover the data in: - (void)sendCELL:(UITableViewCell *)sender { CGRect tag =…
-
0
votes1
answer224
viewsA: Get my location through reverseGeocodeLocation
CLLocation *crnLoc = [locations lastObject]; latitude.text = [NSString stringWithFormat:@"%.8f",crnLoc.coordinate.latitude]; longitude.text = [NSString…
-
1
votes3
answers2766
viewsA: Get id of the last record inserted in the database
Try it this way: SELECT * FROM TABLE WHERE ID = (SELECT MAX(ID) FROM TABLE);
-
-1
votes1
answer35
viewsA: How to Rotate Viewcontroller Manually?
Try it this way. #define degreesToRadians(x) (M_PI * x / 180.0) self.view.transform = CGAffineTransformRotate(self.view.transform, degreesToRadians(-90));
-
1
votes1
answer181
viewsA: How to load data from a specific mysql user in Xcode?
Try it this way: NSData * dadosBrutos=[NSData dataWithContentsOfURL:[NSURL URLWithString: @"http://peggou.com.br/dados.php"]]; id json = [NSJSONSerialization JSONObjectWithData:dadosBrutos…
-
0
votes2
answers106
viewsA: Download data in String format and JPG images
copy string. NSData * dadosBrutos=[NSData dataWithContentsOfURL:[NSURL URLWithString: @"http://url.com.br/lista_noticias_db_json.php"]]; NSString* newStr = [[NSString alloc] initWithData:dadosBrutos…
-
1
votes2
answers337
viewsA: No data in Json Array on Android
<?PHP $idades = array("Jason"=>38, "Ada"=>35, "Delphino"=>26); $json_str = json_encode($idades); echo "$json_str"; ?> Test with this php.
-
1
votes2
answers102
viewsA: Problem when displaying image with Uiimageview
Try to use that: UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 100, 100)]; [imgView setImage:[UIImage imageNamed:"image.png"]]; [self.view addSubview: imgView];…
-
0
votes3
answers661
viewsA: Receiving value from one method to another - Objective C
#import <UIKit/UIKit.h> @interface UIView () @end NSString *Global_PESS_CODIGO; #import <UIKit/UIKit.h> #import "Constants.h" @interface AppDelegate : UIResponder…
objective-canswered William Monteiro 89 -
0
votes2
answers154
viewsA: Creating an Array with the Keys of a Dictionary
NSString * path= [[NSBundle mainBundle]pathForResource:@"Medicamentos" ofType:@"plist"]; NSDictionary * dadosArquivo =[NSDictionary dictionaryWithContentsOfFile:path]; NSArray * medicamentos…
-
1
votes1
answer46
viewsA: how to access via callout Bubble on a descriptive map on a tableView
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { } Take a look at this method, I think that’s it, if you don’t post the code to look at it.…