Tips and Tricks Archives

Incoming search terms:

  • uhzphyvwj
  • add objects to nsdictionary ios
  • create nsdictionary in android
  • phonegap autoresize
  • xcode ios filemanager path For Resource

How to Execute Javascript in UIWebView?

It is possible to execute javascript codes on the webpage loaded in a UIWebView. We can use stringByEvaluatingJavaScriptFromString: method of UIWebView object for this.

This method can be used once the url has been loaded in the web view as follows :

Incoming search terms:

  • Cocoa|Web eCommerce iOS Android ArduinoandSEO
  • javascript ios webview 2013
  • will jquery work in uiwebview on ios

We will have to use the batteryMonitoringEnabled property of the device for enabling and disabling battery monitoring using Xcode.

Incoming search terms:

  • objective c enable battery monitoring

Converting Number to Percentage in Xcode

This error occurs when you try to install an app into the device via xcode. This means that there is already an app in the device with the same bundle id, whose executable is mismatching with the new one you are trying to install. To fix this, you have to delete the old app with the same bundle id from the device.

Incoming search terms:

  • could not change executable permissions on the application
  • could not change the executable permissions on the application
  • could not change executable permissions
  • xcode erorr could not change executable permissions on the application
  • sencha could not change executable permissions
  • ipad could not change executable permissions
  • ios Could not change executable permissions on the application
  • could-not-change-executable-permissions-on-the-application
  • could not exhange executable permissions on application
  • could change executable permissions for application

The common undefined symbol error appearing while integrating test flight will be something like the following :

Undefined symbols for architecture armv7s:

“_deflateInit_”, referenced from:

_compress_data in libTestFlight.a(tf_compression.o)

“_deflateEnd”, referenced from:

_compress_data in libTestFlight.a(tf_compression.o)

“_deflate”, referenced from:

_compress_data in libTestFlight.a(tf_compression.o)

ld: symbol(s) not found for architecture armv7s

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

The fix for this issue is simple.

Goto the build phases of the target for which the issue is appearing. In the link binary with libraries section, use the ‘+’ button at the bottom to add a new library. In the dialog box which appears, search for libz.dylib . You will see the library in the list. Select that and press the ‘Add’ button.

Now perform a build clean for the project and you are done.

Build the app and the issue will be fixed.

Incoming search terms:

  • _compress_data in libtestflight a(tf_compression o)
  • bfmuavrmput
  • Undefined symbols for architecture armv7s: _deflateInit2_ referenced from
  • testflight _deflate referenced from
  • in libtestflight a
  • how to make dialog box using cocos2dx
  • cocos2dx uicontroller
  • cocos2dx ios6 fadeout problem
  • cocos2d web
  • cocos2d test web

We can get the child view controllers of a view controller using the childViewControllers property of the view controller.

If we are in a view controller class, if we want to get its child view controllers, then we can use the following code :

self.childViewControllers;

This will return an array of view controllers that are the child of the current view controller.

If there are no child view controllers of the current view controller, then the array will be empty.

 

If we are to get the child view controllers of a navigation controller, we can use the following code :

self.navigationController.childViewControllers;

Incoming search terms:

  • current childview controller
  • access child view in titanium
  • AppleMAC|Web eCommerce iOS Android ArduinoandSEO
  • how to find a view\s viewcontroller in childviewcontrollers array
  • xcode child view controller
  • xcode get child of navigation controller
  • xcode parent and child view

It is possible to pass a single parameter to performSelector: method in Xcode using the following method :

 

[self performSelector:@selector(selectorNamewithArg:) withObject:param];

 

But what to do if we have to pass multiple parameters? There is a way to pass upto two parameters to the performSelector: method. It can be implemented using the following method :

 

[self performSelector:@selector(selectorNamewithArg1: Arg2:) withObject:param1 withObject:param2];

 

Here, two parameters are passed to the selector method.

 

Incoming search terms:

  • xcode multiple arguments

How to Boot to a Different OS in Dual-boot Mac

You can use Bootcamp to install install windows OS on a mac machine. Once your system is ready with windows OS and a mac OS, you can switch between the OS using the following methods :

 

- For the first and the simplest method, restart the Mac and while restarting, press the Alt button on the keyboard. This will bring the option to choose the OS you want to use.

- Another method you can use is using the system preferences. Choose startup disk from the system preferences items. In the window which appears, you will be able to see the partitions and OS installed in the mac. From there choose the partition you want to boot to and click the “Restart…” button. Now your mac will restart with the OS you have selected.

 

These are the two simple and easy steps to switch OS in dual boot mac.

Keyboard Shortcut to Open Task Manager in Mac

It is possible to open task manager in mac using keyboard shortcut. The keyboard shortcut used for this is :

Alt + Cmd + Esc

Incoming search terms:

  • how make shortcut of android manager on mac
Page 1 of 2112345...1020...Last »